source: sasview/pr_inversion/setup.py @ 650f87d3

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 650f87d3 was e3fd359, checked in by Jae Cho <jhjcho@…>, 16 years ago

added install script

  • Property mode set to 100644
File size: 1.1 KB
Line 
1"""
2    Setup script for the P(r) inversion module
3"""
4import sys, os
5
6if len(sys.argv) == 1:
7    sys.argv.append('install')
8
9# Then build and install the modules
10from distutils.core import setup, Extension
11
12#numpy_incl = "Lib\site-packages\numpy\core\include\numpy"
13numpy_incl_path = os.path.join(sys.prefix, "Lib", "site-packages", "numpy", "core", "include", "numpy")
14print "NUMPY", numpy_incl_path
15
16# Build the module name
17srcdir  = "c_extensions"
18
19setup(
20    name="pr_inversion",
21    version = "0.1",
22    description = "Python module inversion of the scattering intensity to P(r)",
23    author = "University of Tennessee",
24    url = "danse.chem.utk.edu",
25   
26    # Use the pure python modules
27    package_dir = {"sans.pr.core":"c_extensions",
28                   "sans.pr": "."},
29   
30    packages = ["sans.pr","sans.pr.core"],
31   
32    ext_modules = [ Extension("sans.pr.core.pr_inversion",
33     sources = [
34        srcdir+"/Cinvertor.c",
35        srcdir+"/invertor.c",
36            ],
37         include_dirs=[numpy_incl_path]
38     
39     
40     )])
41       
Note: See TracBrowser for help on using the repository browser.