Commit 1b891c70 authored by LAMBERT Jean-charles's avatar LAMBERT Jean-charles

new release with mode README for pypi

parent 9122233c
#cmake
*build/
*build*/
#qmake
*.user
# tilda
*~
.tags
# version
py/unsiotools/version.py
......
......@@ -61,7 +61,7 @@ pyversion="3"
if sys.version_info[0]<3 :
pyversion=""
with open('README.md', 'r') as f:
with open('py/README.md', 'r') as f:
long_description = f.read()
# trick to add SWIG generated module
......@@ -77,20 +77,18 @@ class build_py(_build_py, object):
else: # python3
return super().run()
#
# version management
#
MAJOR = '0'
MINOR = '0'
MICRO = '1'
MICRO = '2'
VERSION = '%s.%s.%s' % (MAJOR, MINOR, MICRO)
#
# write_version : write unsio version in py/unsio/version.py file
# it's imported from __init__.py as __version__
def write_version_py(filename='py/unsiotools/version.py'):
cnt = """
# THIS FILE IS GENERATED FROM PYTHON-UNSIO SETUP.PY
......@@ -104,7 +102,6 @@ version = '%(version)s'
finally:
a.close()
# setup_package :
#
......@@ -157,7 +154,6 @@ def setup_package():
os.environ['NEMO']+'/usr/dehnen/falcON/public',
os.environ['NEMO']+'/inc'
],
extra_compile_args = ['-O2','-std=c++03'],
define_macros=[('NOBOOST',None), # equivalent to -DNOBOOST
('falcON_SINGLE',None),
......@@ -169,7 +165,7 @@ def setup_package():
os.environ['NEMO']+'/lib',
os.environ['NEMO']+'/usr/dehnen/utils/lib',
os.environ['NEMO']+'/usr/dehnen/falcON/lib'],
runtime_library_dirs=['/usr/lib/x86_64-linux-gnu','/usr/lib64','/lib64',os.environ['HOME']+'/local/unsio/lib',
runtime_library_dirs=['/usr/lib/x86_64-linux-gnu','/usr/lib64','/lib64',os.environ['HOME']+'/local/unsio/lib64',
os.environ['NEMO']+'/lib',
os.environ['NEMO']+'/usr/dehnen/utils/lib',
os.environ['NEMO']+'/usr/dehnen/falcON/lib' ]
......@@ -181,26 +177,22 @@ def setup_package():
],
entry_points={
"console_scripts": [
"uns_2dplot.py = unsiotools.simulations.c2dplot:commandLine",
"uns_2dpgplot.py = unsiotools.simulations.c2dpgplot:commandLine",
"merging_time.py = unsiotools.simulations.ccod:commandLineMT",
"uns_cod.py = unsiotools.simulations.ccod:commandLine",
"uns_inert.py = unsiotools.simulations.cinert:commandLine",
"uns_plot_inert.py = unsiotools.simulations.cplotinert:commandLine",
"uns_2dplot.py = unsiotools.simulations.c2dplot:commandLine",
"uns_2dpgplot.py = unsiotools.simulations.c2dpgplot:commandLine",
"merging_time.py = unsiotools.simulations.ccod:commandLineMT",
"uns_cod.py = unsiotools.simulations.ccod:commandLine",
"uns_inert.py = unsiotools.simulations.cinert:commandLine",
"uns_plot_inert.py = unsiotools.simulations.cplotinert:commandLine",
"post_build_movie.py = unsiotools.simulations.cmovie:commandLine",
"process_analysis.py = unsiotools.simulations.cuns_analysis:commandLine",
"process_analysis.py = unsiotools.simulations.cuns_analysis:commandLine",
"remove_sim_halo.py = unsiotools.simulations.creducesim:commandLine",
"ramses2gadget.py = unsiotools.simulations.cramses2gadget:commandLine",
"ramses2gadget.py = unsiotools.simulations.cramses2gadget:commandLine",
],
},
install_requires=['python-unsio','matplotlib','scipy','numpy'],
setup_requires=['numpy']
setup_requires=['']
)
setup(**metadata)
#
#py_modules = ["py_baryc"]
#data_files=[('',['src/numpy.i'])]
# main
#
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment