source: sasview/pr_inversion/setup.py @ 7d47789

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 7d47789 was 72cad53, checked in by Gervaise Alina <gervyh@…>, 13 years ago

edit manifest

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