This repository has been archived by the owner on Apr 6, 2023. It is now read-only.
forked from pex-tool/pex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
75 lines (62 loc) · 2.42 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
import os
# We may be executed from outside the project dir: `python pex/setup.py ...`, so ensure the
# `setup.py` dir is on the path and we're working from here so that dist/ and build/ dirs get
# created here and all files indicated by MANIFEST.in are found.
__HERE = os.path.realpath(os.path.dirname(__file__))
os.chdir(__HERE)
with open(os.path.join(__HERE, 'README.rst')) as fp:
LONG_DESCRIPTION = fp.read() + '\n'
with open(os.path.join(__HERE, 'CHANGES.rst')) as fp:
LONG_DESCRIPTION += fp.read()
from pex import third_party
third_party.install(expose=['setuptools', 'wheel'])
from pex.third_party.setuptools import find_packages, setup
from pex.commands.bdist_pex import bdist_pex
from pex.version import __version__
setup(
name='pex',
version=__version__,
description="The PEX packaging toolchain.",
long_description=LONG_DESCRIPTION,
long_description_content_type="text/x-rst",
url='https://github.com/pantsbuild/pex',
license='Apache License, Version 2.0',
zip_safe=False,
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: Unix',
'Operating System :: POSIX :: Linux',
'Operating System :: MacOS :: MacOS X',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
packages=find_packages(),
include_package_data=True,
extras_require={
# For improved subprocess robustness under python2.7.
'subprocess': ['subprocess32>=3.2.7'],
# For improved requirement resolution and fetching robustness.
'requests': ['requests>=2.8.14'],
# For improved requirement resolution and fetching performance.
'cachecontrol': ['CacheControl>=0.12.3'],
},
cmdclass={'bdist_pex': bdist_pex}, # Make bdist_pex available for _this_ setup.py.
entry_points={
'distutils.commands': [
# Make bdist_pex available for folks who install the pex distribution.
'bdist_pex = pex.commands.bdist_pex:bdist_pex',
],
'console_scripts': [
'pex = pex.bin.pex:main',
],
},
)