forked from coin-or/pulp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
66 lines (62 loc) · 2.18 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
#!/usr/bin/env/python
"""
Setup script for PuLP added by Stuart Mitchell 2007
Copyright 2007 Stuart Mitchell
"""
from setuptools import setup
readme_name = "README.rst"
Description = open(readme_name).read()
# read the version number safely from the constants.py file
version_dict = {}
exec(open("pulp/constants.py").read(), version_dict)
VERSION = version_dict["VERSION"]
with open(readme_name, "r") as fh:
long_description = fh.read()
setup(
name="PuLP",
version=VERSION,
description="PuLP is an LP modeler written in python. PuLP can generate MPS or LP files and call GLPK, COIN CLP/CBC, CPLEX, and GUROBI to solve linear problems.",
long_description=long_description,
long_description_content_type="text/x-rst",
keywords=["Optimization", "Linear Programming", "Operations Research"],
author="J.S. Roy and S.A. Mitchell and F. Peschiera",
author_email="[email protected]",
url="https://github.com/coin-or/pulp",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Programming Language :: Python",
"Topic :: Scientific/Engineering :: Mathematics",
],
# need the cbc directories here as the executable bit is set
packages=[
"pulp",
"pulp.solverdir",
"pulp.solverdir.cbc.linux.32",
"pulp.solverdir.cbc.linux.64",
"pulp.solverdir.cbc.win.32",
"pulp.solverdir.cbc.win.64",
"pulp.solverdir.cbc.osx.64",
"pulp.solverdir.choco",
],
package_data={
"pulp.solverdir.cbc.linux.32": ["*", "*.*"],
"pulp.solverdir.cbc.linux.64": ["*", "*.*"],
"pulp.solverdir.cbc.win.32": ["*", "*.*"],
"pulp.solverdir.cbc.win.64": ["*", "*.*"],
"pulp.solverdir.cbc.osx.64": ["*", "*.*"],
"pulp.solverdir.choco": ["*", "*.*"],
},
include_package_data=True,
install_requires=[],
entry_points=(
"""
[console_scripts]
pulptest = pulp.tests.run_tests:pulpTestAll
"""
),
test_suite="pulp.tests.run_tests.get_test_suite",
)