From b7cdda51a49744e1ff9f582b4467938134a57f8f Mon Sep 17 00:00:00 2001 From: Stefanie Lumnitz Date: Tue, 26 Jun 2018 20:44:14 -0700 Subject: [PATCH] fix setup.py so files are installed with "pip install ." change the version number to remove a warning remove 2to3 build command that is no longer needed add "splot" to package list so files in the package are included when installing with pip. --- MANIFEST.in | 1 + setup.py | 12 ++++-------- 2 files changed, 5 insertions(+), 8 deletions(-) create mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 00000000..179b2549 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +include splot/tests/*.py diff --git a/setup.py b/setup.py index 9154eedc..1825c3e7 100644 --- a/setup.py +++ b/setup.py @@ -1,12 +1,8 @@ from setuptools import setup -try: - from distutils.command.build_py import build_py_2to3 as build_py -except ImportError: - from distutils.command.build_py import build_py setup(name='splot', #name of package - version='1.0.0dev', + version='1.0.0.dev0', description= 'plotting for PySAL', url= 'https://github.com/pysal/splot', maintainer= 'Serge Rey', @@ -27,8 +23,8 @@ 'Programming Language :: Python :: 3.6' ], license='3-Clause BSD', - packages=[], + packages=['splot'], + include_package_data=True, install_requires=['numpy', 'scipy', 'libpysal', 'mapclassify', 'palettable', 'esda', 'pysal',], - zip_safe=False, - cmdclass = {'build.py':build_py}) + zip_safe=False)