forked from conda/conda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
89 lines (78 loc) · 2.66 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
88
89
# -*- coding: utf-8 -*-
# Copyright (C) 2012 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import os
import sys
from setuptools import setup
if not sys.version_info[:2] >= (3, 7):
sys.exit(
f"conda is only meant for Python 3.7 and up. "
f"current version: {sys.version_info.major}.{sys.version_info.minor}"
)
# When executing setup.py, we need to be able to import ourselves, this
# means that we need to add the src directory to the sys.path.
src_dir = here = os.path.abspath(os.path.dirname(__file__))
sys.path.insert(0, src_dir)
import conda.auxlib.packaging
long_description = """
.. image:: https://s3.amazonaws.com/conda-dev/conda_logo.svg
:alt: Conda Logo
Conda is a cross-platform, language-agnostic binary package manager. It is the
package manager used by `Anaconda
<http://docs.continuum.io/anaconda/index.html>`_ installations, but it may be
used for other systems as well. Conda makes environments first-class
citizens, making it easy to create independent environments even for C
libraries. Conda is written entirely in Python, and is BSD licensed open
source.
"""
install_requires = [
"pycosat >=0.6.3",
"requests >=2.20.1",
"ruamel_yaml_conda >=0.11.14",
"menuinst ; platform_system=='Windows'",
]
def package_files(*root_directories):
return [
os.path.join('..', path, filename)
for directory in root_directories
for (path, directories, filenames) in os.walk(directory)
for filename in filenames
]
setup(
name=conda.__name__,
version=conda.__version__,
author=conda.__author__,
author_email=conda.__email__,
url=conda.__url__,
license=conda.__license__,
description=conda.__summary__,
long_description=long_description,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
packages=conda.auxlib.packaging.find_packages(
exclude=("tests", "tests.*", "build", "utils", ".tox")
),
package_data={
'': package_files('conda/shell') + ['LICENSE'],
},
cmdclass={
"build_py": conda.auxlib.packaging.BuildPyCommand,
"sdist": conda.auxlib.packaging.SDistCommand,
},
entry_points={
'console_scripts': [
'conda=conda.cli.main_pip:main',
],
},
install_requires=install_requires,
python_requires=">=3.7",
zip_safe=False,
)