summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2017-12-03 18:47:19 -0800
committerJon Dufresne <jon.dufresne@gmail.com>2017-12-10 10:55:58 -0800
commit389f6c08d9536060184bfd5c8ea2491a4a91c2fb (patch)
treef85e494ab9c681494616ec6bb9b9d01852c62f90 /setup.py
parentc86e682153f4cb8d99e490b2af964f3f11e3489f (diff)
downloadpsycopg2-389f6c08d9536060184bfd5c8ea2491a4a91c2fb.tar.gz
Avoid installing tests to site-packages
For library end users, there is no need to install tests alongside the package itself. This keeps the tests available for development without adding extra packages to user's site-packages directory. Reduces the size of the installed package. Avoids accidental execution of test code by an installed package.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index e6144af..0e21462 100644
--- a/setup.py
+++ b/setup.py
@@ -624,8 +624,8 @@ setup(name="psycopg2",
long_description="\n".join(readme.split("\n")[2:]).lstrip(),
classifiers=[x for x in classifiers.split("\n") if x],
data_files=data_files,
- package_dir={'psycopg2': 'lib', 'psycopg2.tests': 'tests'},
- packages=['psycopg2', 'psycopg2.tests'],
+ package_dir={'psycopg2': 'lib'},
+ packages=['psycopg2'],
cmdclass={
'build_ext': psycopg_build_ext,
'build_py': build_py, },