forked from conda/conda-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·67 lines (59 loc) · 2.7 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
#!/usr/bin/env python
import sys
import versioneer
from setuptools import setup
if sys.version_info[:2] < (2, 7):
sys.exit("conda-build is only meant for Python >=2.7"
"Current Python version: %d.%d" % sys.version_info[:2])
# Don't proceed with 'unknown' in version
version_dict = versioneer.get_versions()
if version_dict['error']:
raise RuntimeError(version_dict["error"])
deps = ['conda', 'requests', 'filelock', 'pyyaml', 'jinja2', 'pkginfo',
'beautifulsoup4', 'chardet', 'pytz', 'tqdm', 'psutil', 'six',
'libarchive-c', 'setuptools']
# We cannot build lief for Python 2.7 on Windows (unless we use mingw-w64 for it, which
# would be a non-trivial amount of work).
# .. lief is missing the egg-info directory so we cannot do this .. besides it is not on
# pypi.
# if sys.platform != 'win-32' or sys.version_info >= (3, 0):
# deps.extend(['lief'])
if sys.version_info < (3, 4):
deps.extend(['contextlib2', 'enum34', 'futures', 'scandir', 'glob2'])
setup(
name="conda-build",
version=version_dict['version'],
cmdclass=versioneer.get_cmdclass(),
author="Continuum Analytics, Inc.",
author_email="[email protected]",
url="https://github.com/conda/conda-build",
license="BSD-3-Clause",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
description="tools for building conda packages",
long_description=open('README.rst').read(),
packages=['conda_build', 'conda_build.cli',
'conda_build.skeletons', 'conda_build.os_utils'],
entry_points={
'console_scripts': ['conda-build = conda_build.cli.main_build:main',
'conda-convert = conda_build.cli.main_convert:main',
'conda-develop = conda_build.cli.main_develop:main',
'conda-index = conda_build.cli.main_index:main',
'conda-inspect = conda_build.cli.main_inspect:main',
'conda-metapackage = conda_build.cli.main_metapackage:main',
'conda-render = conda_build.cli.main_render:main',
'conda-skeleton = conda_build.cli.main_skeleton:main',
'conda-debug = conda_build.cli.main_debug:main',
]},
install_requires=deps,
package_data={'conda_build': ['templates/*', 'cli-*.exe']},
zip_safe=False,
)