Skip to content
Snippets Groups Projects
Commit 570a77fa authored by alex mirone's avatar alex mirone
Browse files

Windows installation

parent bf63c6b9
No related branches found
No related tags found
No related merge requests found
@echo off
python "%~dpn0" %*
@echo off
python "%~dpn0" %*
......@@ -38,7 +38,8 @@ packages = ['ab2tds', 'ab2tds.octree', 'PyMca']
sources = glob.glob('*.cc')
if sys.platform == "win32":
define_macros = [('WIN32',None)]
script_files = []
script_files = glob.glob(jn(['ab2tds', 'scripts/*']))
script_files += glob.glob('scripts/*.bat')
else:
define_macros = []
script_files = glob.glob(jn(['ab2tds', 'scripts/*']))
......@@ -147,9 +148,12 @@ class smart_install_scripts(install_scripts):
f.close()
text = "#!/bin/bash\n"
text += "export PYTHONPATH=%s:${PYTHONPATH}\n" % moddir
text += "export LD_LIBRARY_PATH=%s:${LD_LIBRARY_PATH}\n" % moddir
text += "exec python %s $*\n" % os.path.join(moddir,filedest_py )
text += "from ab2tds import %s\n"%os.path.basename(filein)
# text += "export PYTHONPATH=%s:${PYTHONPATH}\n" % moddir
# text += "export LD_LIBRARY_PATH=%s:${LD_LIBRARY_PATH}\n" % moddir
# text += "exec python %s $*\n" % os.path.join(moddir,filedest_py )
f=open(filedest, 'w')
f.write(text)
f.close()
......@@ -169,6 +173,7 @@ class smart_install_scripts(install_scripts):
description = ""
long_description = """
"""
print " script_files ", script_files
distrib = setup(name="ab2tds",
license = "GPL - Please read LICENSE.GPL for details",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment