diff options
author | Donald Stufft <donald@stufft.io> | 2014-11-20 19:55:13 -0500 |
---|---|---|
committer | Donald Stufft <donald@stufft.io> | 2014-11-20 19:55:13 -0500 |
commit | 487d7a51b499285dffd74383b57ed91abde8bd9b (patch) | |
tree | 7c06be2841acd13eccfe30307fc48640a9bdf880 /setup.py | |
parent | 762f831bbe8ddb3638b5fe5f5eddce65feefe487 (diff) | |
download | pip-487d7a51b499285dffd74383b57ed91abde8bd9b.tar.gz |
Also exclude package_data when running with NO_VENDOR
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -53,10 +53,19 @@ find_excludes = ["contrib", "docs", "tests*", "tasks"] py_modules = [] +package_data = {} + if NO_VENDOR: find_excludes += ["pip._vendor", "pip._vendor.*"] py_modules += ["pip._vendor.__init__"] +else: + package_data.update({ + "pip._vendor.certifi": ["*.pem"], + "pip._vendor.requests": ["*.pem"], + "pip._vendor.distlib._backport": ["sysconfig.cfg"], + "pip._vendor.distlib": ["t32.exe", "t64.exe", "w32.exe", "w64.exe"], + }) setup( @@ -85,12 +94,7 @@ setup( license='MIT', py_modules=py_modules, packages=find_packages(exclude=find_excludes), - package_data={ - 'pip._vendor.certifi': ['*.pem'], - 'pip._vendor.requests': ['*.pem'], - 'pip._vendor.distlib._backport': ['sysconfig.cfg'], - 'pip._vendor.distlib': ['t32.exe', 't64.exe', 'w32.exe', 'w64.exe'], - }, + package_data=package_data, entry_points={ "console_scripts": [ "pip=pip:main", |