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 4834cba was
2d3e123,
checked in by Gervaise Alina <gervyh@…>, 15 years ago
|
setup for calculator
|
-
Property mode set to
100644
|
File size:
803 bytes
|
Rev | Line | |
---|
[427fa87] | 1 | """ |
---|
| 2 | Installation script for DANSE calculator perspective for SansView |
---|
| 3 | """ |
---|
| 4 | |
---|
[2d3e123] | 5 | import os |
---|
[427fa87] | 6 | |
---|
[2d3e123] | 7 | |
---|
| 8 | from distutils.core import setup |
---|
| 9 | from distutils.sysconfig import get_python_lib |
---|
| 10 | from distutils.filelist import findall |
---|
| 11 | new_path = os.path.join(get_python_lib(),"sans","perspectives","calculator","media") |
---|
| 12 | path = "media" |
---|
| 13 | data_files = [] |
---|
| 14 | for f in findall(path): |
---|
| 15 | if os.path.split(f)[0].count('.svn')==0: |
---|
| 16 | data_files.append((new_path, [f])) |
---|
[427fa87] | 17 | setup( |
---|
| 18 | name="calculator", |
---|
[2d3e123] | 19 | description="calculator perspective for SansView", |
---|
| 20 | package_dir={"sans.perspectives":"perspectives", |
---|
[427fa87] | 21 | "sans.perspectives.calculator":"perspectives/calculator"}, |
---|
[2d3e123] | 22 | data_files=data_files, |
---|
| 23 | packages=["sans.perspectives", |
---|
[427fa87] | 24 | "sans.perspectives.calculator"], |
---|
| 25 | ) |
---|
| 26 | |
---|
Note: See
TracBrowser
for help on using the repository browser.