changeset 3:9e56ffd701d4

Fix setup.py to install a real package
author Daniele Nicolodi <daniele@grinta.net>
date Tue, 24 Mar 2015 18:22:40 +0100
parents ff2192f47448
children 9d016a2a2702
files setup.py
diffstat 1 files changed, 14 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/setup.py	Tue Mar 24 18:10:40 2015 +0100
+++ b/setup.py	Tue Mar 24 18:22:40 2015 +0100
@@ -1,9 +1,19 @@
-from distutils.core import setup
-from distutils.extension import Extension
+from setuptools import setup, find_packages
+from setuptools.extension import Extension
 from Cython.Build import cythonize
 from numpy import get_include
 
-ext_modules = cythonize([Extension("_allan", ["_allan.pyx"]), ])
+VERSION = '0.1'
 
-setup(ext_modules = ext_modules,
+setup(name='allan',
+      version=VERSION,
+      keywords='',
+      author='Daniele Nicolodi',
+      author_email='daniele.nicolodi@obspm.fr',
+      license='GPLv3+',
+      packages=find_packages(),
+      package_dir={'': '.'},
+      include_package_data=False,
+      zip_safe=False,
+      ext_modules = cythonize([Extension("_allan", ["_allan.pyx"]), ]),
       include_dirs = get_include())