2016-08-04 21:07:14 +02:00
|
|
|
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"""
|
2016-08-04 21:07:14 +02:00
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
from setuptools import setup, Extension
|
|
|
|
|
except ImportError:
|
|
|
|
|
raise ImportError(setuptools_import_error_message)
|
|
|
|
|
|
2012-09-02 15:20:21 +00:00
|
|
|
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()
|
2012-09-02 15:20:21 +00:00
|
|
|
|
2014-01-03 21:13:09 +00:00
|
|
|
dummy_module = Extension('dummy_ortools_dependency',
|
2014-02-14 15:15:00 +00:00
|
|
|
sources = ['dummy/dummy_ortools_dependency.cc'],
|
|
|
|
|
DELETEUNIX extra_link_args=['/MANIFEST'],
|
|
|
|
|
)
|
2014-01-03 19:16:29 +00:00
|
|
|
|
2012-09-02 15:20:21 +00:00
|
|
|
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',],
|
2014-01-03 19:16:29 +00:00
|
|
|
ext_modules = [dummy_module],
|
|
|
|
|
install_requires = [
|
2016-08-04 21:07:14 +02:00
|
|
|
'protobuf >= PROTOBUF_TAG'],
|
2014-02-14 13:38:07 +00:00
|
|
|
package_data = {
|
|
|
|
|
'ortools.constraint_solver' : ['_pywrapcp.dll'],
|
|
|
|
|
'ortools.linear_solver' : ['_pywraplp.dll'],
|
|
|
|
|
'ortools.graph' : ['_pywrapgraph.dll'],
|
|
|
|
|
'ortools.algorithms' : ['_pywrapknapsack_solver.dll'],
|
2015-03-30 15:23:39 +02:00
|
|
|
DELETEWIN 'ortools' : ['libortools.DLL']
|
2014-02-14 14:41:23 +00:00
|
|
|
},
|
2012-09-02 15:20:21 +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'),
|
2015-09-08 18:36:32 +02:00
|
|
|
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',
|
2016-07-12 14:55:11 +02:00
|
|
|
'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'),
|
2012-09-02 15:20:21 +00:00
|
|
|
)
|