Changeset 1002 for trunk/bindings/python
- Timestamp:
- 01/07/08 16:47:30 (4 years ago)
- Location:
- trunk/bindings/python
- Files:
-
- 2 edited
-
Makefile.am (modified) (1 diff)
-
nxs.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bindings/python/Makefile.am
r1000 r1002 31 31 pydocdir = $(NXDOCDIR)/python 32 32 pydoc_DATA = README.html 33 p ython_PYTHON = nxs.py setup.py nxstest.py33 pkgpython_PYTHON = nxs.py setup.py nxstest.py 34 34 EXTRA_DIST = README.html 35 35 36 #install-data-hook : 37 # python setup.py install --root=$(DESTDIR) 36 install-data-hook : 37 sed -e "s|nxprefix = .*|nxprefix = \'${prefix}\'|" < ${srcdir}/nxs.py > $(DESTDIR)${pkgpythondir}/nxs.py 38 39 # python setup.py install --root=$(DESTDIR) 38 40 39 41 include $(top_srcdir)/build_rules.am -
trunk/bindings/python/nxs.py
r999 r1002 185 185 Load the NeXus library whereever it may be. 186 186 """ 187 # this will get changed as part of the install process 188 # it should correspond to --prefix specified to ./configure 189 nxprefix = '/usr/local' 187 190 # NEXUSLIB takes precedence 188 191 if 'NEXUSLIB' in os.environ: … … 210 213 # Search the load library path as well as the standard locations 211 214 ldpath = [p for p in os.environ.get(ldenv,'').split(':') if p != ''] 212 stdpath = [ '/usr/local/lib','/usr/lib']215 stdpath = [ nxprefix+'/lib', '/usr/local/lib', '/usr/lib'] 213 216 files += [os.path.join(p,lib) for p in [filedir]+ldpath+stdpath] 214 217
Note: See TracChangeset
for help on using the changeset viewer.
