ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change
on this file since 58c6ba6 was
588f84f,
checked in by Mathieu Doucet <doucetm@…>, 16 years ago
|
pr_inversion: remove bad argument logic
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | """ |
---|
2 | Setup script for the P(r) inversion module |
---|
3 | """ |
---|
4 | import sys, os |
---|
5 | |
---|
6 | # Then build and install the modules |
---|
7 | from distutils.core import setup, Extension |
---|
8 | |
---|
9 | #numpy_incl = "Lib\site-packages\numpy\core\include\numpy" |
---|
10 | numpy_incl_path = os.path.join(sys.prefix, "Lib", "site-packages", "numpy", "core", "include", "numpy") |
---|
11 | print "NUMPY", numpy_incl_path |
---|
12 | |
---|
13 | # Build the module name |
---|
14 | srcdir = "c_extensions" |
---|
15 | |
---|
16 | setup( |
---|
17 | name="pr_inversion", |
---|
18 | version = "0.1", |
---|
19 | description = "Python module inversion of the scattering intensity to P(r)", |
---|
20 | author = "University of Tennessee", |
---|
21 | url = "danse.chem.utk.edu", |
---|
22 | |
---|
23 | # Use the pure python modules |
---|
24 | package_dir = {"sans.pr.core":"c_extensions", |
---|
25 | "sans.pr": "."}, |
---|
26 | |
---|
27 | packages = ["sans.pr","sans.pr.core"], |
---|
28 | |
---|
29 | ext_modules = [ Extension("sans.pr.core.pr_inversion", |
---|
30 | sources = [ |
---|
31 | srcdir+"/Cinvertor.c", |
---|
32 | srcdir+"/invertor.c", |
---|
33 | ], |
---|
34 | include_dirs=[numpy_incl_path] |
---|
35 | |
---|
36 | |
---|
37 | )]) |
---|
38 | |
---|
Note: See
TracBrowser
for help on using the repository browser.