Changeset 1150


Ignore:
Timestamp:
13/01/09 16:41:55 (3 years ago)
Author:
Freddie Akeroyd
Message:

Update trunk with 4.2 branch fix for python install path. Refs #115.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bindings/python/Makefile.am

    r1132 r1150  
    3131pydocdir        = $(NXDOCDIR)/python 
    3232pydoc_DATA      = README.html 
    33 nxspythondir    = $(pkgpythondir)/nxs 
    34 pkgpython_PYTHON = nxstest.py 
    35 nxspython_PYTHON = nxs 
    36 EXTRA_DIST      = README.html 
     33#nxspythondir   = $(pkgpythondir)/nxs 
     34nxspythondir    = $(pythondir)/nxs 
     35#pkgpython_PYTHON = nxstest.py 
     36nxspython_PYTHON = nxs/__init__.py nxs/napi.py 
     37EXTRA_DIST      = README.html nxstest.py 
    3738 
    3839install-data-hook : 
    3940        sed -e "s|nxprefix = .*|nxprefix = \'${prefix}\'|" < ${srcdir}/nxs/napi.py > $(DESTDIR)${nxspythondir}/napi.py 
     41        if test -z "$(DESTDIR)"; then \ 
     42            $(py_compile) --basedir "$(nxspythondir)" napi.py; \ 
     43        else \ 
     44            $(py_compile) --destdir "$(DESTDIR)" --basedir "$(nxspythondir)" napi.py; \ 
     45        fi 
    4046 
    4147# python setup.py install --root=$(DESTDIR) 
Note: See TracChangeset for help on using the changeset viewer.