forked from perrygeo/simanneal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
35 lines (31 loc) · 1.2 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
#!/usr/bin/env/python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
LONG_DESCRIPTION = """`simanneal` is a python implementation of the
[simulated annealing optimization](http://en.wikipedia.org/wiki/Simulated_annealing) technique.
Simulated annealing is used to find a close-to-optimal solution among an
extremely large (but finite) set of potential solutions. It is particularly
useful for [combinatorial optimization](http://en.wikipedia.org/wiki/Combinatorial_optimization)
problems defined by complex objective functions that rely on external data.
"""
# Parse the version from the fiona module.
with open('simanneal/__init__.py') as f:
for line in f:
if line.find("__version__") >= 0:
version = line.split("=")[1].strip()
version = version.strip('"')
version = version.strip("'")
break
setup(
name='simanneal',
version=version,
description='Simulated Annealing in Python',
license='BSD',
author='Matthew Perry',
author_email='[email protected]',
url='https://github.com/perrygeo/simanneal',
long_description=LONG_DESCRIPTION,
packages=['simanneal'],
install_requires=[])