Commit 3c11e882 authored by LAMBERT Jean-charles's avatar LAMBERT Jean-charles Committed by LAMBERT Jean-charles
Browse files

more setup

parent 03c745ab
......@@ -7,6 +7,10 @@
# tilda
*~
# version
py/unsiotools/version.py
dist
# python
*.pyc
\#*
......
include py/lib/swig/numpy.i
include py/unsiotools/py_unstools.i py/unsiotools/numpy.i
include lib/utils/nemodep/cfalcon.h lib/utils/csnaptools.h lib/utils/*.h lib/utils/ctree.h lib/projects/nemodep/crectify.h lib/projects/nemodep/c2dplot.h
exclude py/unsiotools/py_unstools.py py/unsiotools/version.py
......@@ -61,6 +61,9 @@ pyversion="3"
if sys.version_info[0]<3 :
pyversion=""
with open('README.md', 'r') as f:
long_description = f.read()
# trick to add SWIG generated module
# see https://stackoverflow.com/questions/12491328/python-distutils-not-include-the-swig-generated-module
# and especially : https://stackoverflow.com/questions/29477298/setup-py-run-build-ext-before-anything-else/48942866#48942866
......@@ -79,8 +82,8 @@ class build_py(_build_py, object):
# version management
#
MAJOR = '0'
MINOR = '9'
MICRO = '2rc2'
MINOR = '0'
MICRO = '1'
VERSION = '%s.%s.%s' % (MAJOR, MINOR, MICRO)
#
......@@ -88,7 +91,7 @@ VERSION = '%s.%s.%s' % (MAJOR, MINOR, MICRO)
# it's imported from __init__.py as __version__
def write_version_py(filename='py/unsio/version.py'):
def write_version_py(filename='py/unsiotools/version.py'):
cnt = """
# THIS FILE IS GENERATED FROM PYTHON-UNSIO SETUP.PY
#
......@@ -101,7 +104,7 @@ version = '%(version)s'
finally:
a.close()
s#
# setup_package :
#
......@@ -134,7 +137,6 @@ def setup_package():
"Topic :: Software Development"],
platforms=["Linux", "Mac OS-X", "Unix"],
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
cmdclass={'build_py': build_py},
package_dir={'':'py'}, # all packages are under 'py' directory
packages=['unsiotools', 'unsiotools/simulations'],
cmdclass={'build_py': build_py},
......
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