forked from conda/conda-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·87 lines (82 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/usr/bin/env python
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
from pathlib import Path
from setuptools import setup
import versioneer
# 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",
"toml",
"tqdm",
"psutil",
"six",
"libarchive-c",
"setuptools",
# "conda-package-handling", # remove comment once released on PyPI
"glob2",
]
# 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'])
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.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
python_requires=">=3.6",
description="tools for building conda packages",
long_description=Path("README.md").read_text(),
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",
],
"distutils.commands": [
"bdist_conda = conda_build.bdist_conda:bdist_conda",
],
},
install_requires=deps,
package_data={"conda_build": ["templates/*", "cli-*.exe"]},
zip_safe=False,
)