source: sasview/pr_inversion/setup.py @ 4f973f3

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 4f973f3 was a2898df, checked in by Jae Cho <jhjcho@…>, 13 years ago

update version nums

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