Install into subdir pyi2ncommon in site-packages
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Tue, 22 May 2018 09:34:42 +0000 (11:34 +0200)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Tue, 22 May 2018 10:49:52 +0000 (12:49 +0200)
Before, all files src/*.py were just copied to /usr/lib/pythonX.X/site-packages

setup.py

index 59a0a54..dceb51b 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -10,8 +10,8 @@ setup(name='pyi2ncommon',
       author='Intra2net AG',
       author_email='info@intra2net.com',
       url='http://www.intra2net.com',
-      packages=[''],
-      package_dir={'': 'src'},
+      packages=['pyi2ncommon'],
+      package_dir={'pyi2ncommon': 'src'},
       # these files go into the srpm but not the rpm when building them using
       # setup.py bdist_rpm
       # however, when using build_and_install, they get installed, so leave