From b0a3eba2929a02160f68cc970158eaf3cd0d69a8 Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Tue, 22 May 2018 11:34:42 +0200 Subject: [PATCH] Install into subdir pyi2ncommon in site-packages Before, all files src/*.py were just copied to /usr/lib/pythonX.X/site-packages --- setup.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 59a0a54..dceb51b 100644 --- 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 -- 1.7.1