Files
ortools-clone/tools/setup.py

72 lines
2.7 KiB
Python
Raw Normal View History

from sys import executable
setuptools_import_error_message = """setuptools is not installed for """ + executable + """
Please follow this link for installing instructions :
https://pypi.python.org/pypi/setuptools
2016-08-22 16:55:21 +00:00
make sure you use \"""" + executable + """\" during the installation"""
try:
from setuptools import setup, Extension
except ImportError:
raise ImportError(setuptools_import_error_message)
from os.path import join as pjoin
2013-12-27 12:22:30 +00:00
from os.path import dirname
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
2013-12-27 12:24:15 +00:00
return open(pjoin(dirname(__file__), fname)).read()
2014-01-03 21:13:09 +00:00
dummy_module = Extension('dummy_ortools_dependency',
sources = ['dummy/dummy_ortools_dependency.cc'],
DELETEUNIX extra_link_args=['/MANIFEST'],
)
setup(
2013-12-27 12:28:15 +00:00
name='ortools',
2016-06-21 11:41:13 +02:00
version='VVVV',
2014-01-04 09:46:26 +00:00
packages=[
'ortools',
'ortools.algorithms',
'ortools.constraint_solver',
'ortools.graph',
'ortools.linear_solver',],
ext_modules = [dummy_module],
install_requires = [
'protobuf >= PROTOBUF_TAG'],
package_data = {
'ortools.constraint_solver' : ['_pywrapcp.dll'],
'ortools.linear_solver' : ['_pywraplp.dll'],
'ortools.graph' : ['_pywrapgraph.dll'],
'ortools.algorithms' : ['_pywrapknapsack_solver.dll'],
DELETEWIN 'ortools' : ['libortools.DLL']
2014-02-14 14:41:23 +00:00
},
license='Apache 2.0',
2013-12-27 11:04:44 +00:00
author = 'Google Inc',
author_email = 'lperron@google.com',
description = 'Google OR-Tools python libraries and modules',
keywords = ('operations research, constraint programming, ' +
2013-12-27 12:22:30 +00:00
'linear programming,' + 'flow algorithms,' +
2013-12-27 11:04:44 +00:00
'python'),
url = 'https://developers.google.com/optimization/',
download_url = 'https://github.com/google/or-tools/releases',
2013-12-27 11:04:44 +00:00
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
2013-12-27 22:13:41 +00:00
'Programming Language :: Python :: 2.7',
2013-12-27 11:04:44 +00:00
'Topic :: Office/Business :: Scheduling',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Software Development :: Libraries :: Python Modules'],
2013-12-27 12:22:30 +00:00
long_description = read('README.txt'),
)