-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
38 lines (32 loc) · 1.36 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
#!/usr/bin/env python
import sys, getopt
minuitdir = "../Minuit-1_7_9"
otherargs = []
for arg in sys.argv:
if arg.find("with-minuit") != -1:
optlist, argv = getopt.getopt([arg], "", ["with-minuit="])
for name, value in optlist:
if name == "--with-minuit":
minuitdir = value
else:
otherargs.append(arg)
sys.argv = otherargs
print("************************************************************************************************")
print("Assuming Minuit directory is: %s" % minuitdir)
print("************************************************************************************************")
from distutils.core import setup, Extension
import os
##################################################################################################
setup(name="pyMinuit",
version="1.1.2",
description="pyMinuit: Minuit interface for minimizing Python functions",
author="Jim Pivarski",
author_email="[email protected]",
url="http://code.google.com/p/pyminuit/",
package_dir={"": "lib"},
ext_modules=[Extension(os.path.join("minuit"),
[os.path.join("minuit.cpp")],
library_dirs=[os.path.join(minuitdir, "src", ".libs")],
libraries=["lcg_Minuit"],
include_dirs=[minuitdir]
)])