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 97dea6c was
481ad37,
checked in by Mathieu Doucet <doucetm@…>, 15 years ago
|
DataLoader?: update setup.py to allow install with —prefix
|
-
Property mode set to
100644
|
File size:
984 bytes
|
Rev | Line | |
---|
[bb03739] | 1 | """ |
---|
| 2 | Installation script for SANS DataLoader |
---|
| 3 | """ |
---|
[a3f8d58] | 4 | import os, sys |
---|
[ac13512] | 5 | |
---|
[bb03739] | 6 | # Then build and install the modules |
---|
| 7 | from distutils.core import setup, Extension |
---|
[cd17ab4] | 8 | from numpy.distutils.misc_util import get_numpy_include_dirs |
---|
| 9 | numpy_incl_path = os.path.join(get_numpy_include_dirs()[0], "numpy") |
---|
[bb03739] | 10 | setup( |
---|
| 11 | name="DataLoader", |
---|
[d84f6a9] | 12 | version = "0.2", |
---|
[1b0b3ca] | 13 | description = "Python module for loading", |
---|
[bb03739] | 14 | author = "University of Tennessee", |
---|
| 15 | url = "http://danse.chem.utk.edu", |
---|
| 16 | |
---|
[a3f8d58] | 17 | package_dir = {"DataLoader":".", |
---|
| 18 | "DataLoader.extensions":"extensions"}, |
---|
[481ad37] | 19 | package_data={"DataLoader.readers": ['defaults.xml']}, |
---|
[a3f8d58] | 20 | packages = ["DataLoader","DataLoader.readers","DataLoader.extensions"], |
---|
[bb03739] | 21 | |
---|
[a3f8d58] | 22 | ext_modules = [ Extension("DataLoader.extensions.smearer", |
---|
| 23 | sources = [ |
---|
| 24 | "extensions/smearer_module.cpp", |
---|
| 25 | "extensions/smearer.cpp", |
---|
| 26 | ], |
---|
| 27 | include_dirs=["extensions", numpy_incl_path] |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | )]) |
---|
[bb03739] | 31 | |
---|
Note: See
TracBrowser
for help on using the repository browser.