-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
executable file
·44 lines (41 loc) · 1.42 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
#!/usr/bin/python
# -*- coding: utf8 -*-
#
# pyasa - python bindings for Adaptive Simulated Annealing
# Copyright (C) 2012 Robert Jordens <[email protected]>
try:
from setuptools import setup, Extension
except ImportError:
from distutils import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy
import os
setup(
name="pyasa",
description="Adaptive Simulated Annealing",
long_description= """Python bindings for the ASA code from
http://www.ingber.com/#ASA""",
version="0.5+dev",
author="Robert Jordens",
author_email="[email protected]",
url="https://github.com/jordens/pyasa",
license="modified BSD",
install_requires=["numpy"],
#packages=["asa"],
cmdclass = {"build_ext": build_ext},
ext_modules = [Extension("asa",
define_macros = [("ASA_LIB", "1"),
("OPTIONAL_DATA_PTR", "1"),
("USER_TYPE", "void *"),
("USER_ASA_OUT", "1"),
("NO_PARAM_TEMP_TEST", "1"),
("NO_COST_TEMP_TEST", "1"),
#("ASA_PRINT_MORE", "1"),
#("ASA_PRINT", "0"),
],
#extra_compile_args=["-g", "-ffloat-store"],
sources = ["src/asa.pyx", "src/asa_rand.c", "ASA/asa.c"],
include_dirs = ["ASA", numpy.get_include(),],
),],
)