source: sasview/DataLoader/setup.py @ 889d5ab4

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 889d5ab4 was cd17ab4, checked in by Jae Cho <jhjcho@…>, 15 years ago

changed numpy path from get_numpy_include_dirs:

  • Property mode set to 100644
File size: 1.1 KB
RevLine 
[bb03739]1"""
2     Installation script for SANS DataLoader
3"""
[a3f8d58]4import os, sys
[ac13512]5   
[bb03739]6# Then build and install the modules
7from distutils.core import setup, Extension
[07f8d9a]8from distutils.sysconfig import get_python_lib
[cd17ab4]9from numpy.distutils.misc_util import get_numpy_include_dirs
10numpy_incl_path = os.path.join(get_numpy_include_dirs()[0], "numpy")
[bb03739]11setup(
12    name="DataLoader",
13    version = "0.1",
[1b0b3ca]14    description = "Python module for loading",
[bb03739]15    author = "University of Tennessee",
16    url = "http://danse.chem.utk.edu",
17   
[a3f8d58]18    package_dir = {"DataLoader":".",
19                   "DataLoader.extensions":"extensions"},
20   
21    data_files=[(os.path.join(get_python_lib(),"DataLoader","readers"), ["readers/defaults.xml"])],
22    packages = ["DataLoader","DataLoader.readers","DataLoader.extensions"],
[bb03739]23   
[a3f8d58]24    ext_modules = [ Extension("DataLoader.extensions.smearer",
25     sources = [
26        "extensions/smearer_module.cpp",
27        "extensions/smearer.cpp",
28            ],
29         include_dirs=["extensions", numpy_incl_path]
30     
31     
32     )])
[bb03739]33       
Note: See TracBrowser for help on using the repository browser.