Commit 5c43cb65 authored by Steffen Grunewald's avatar Steffen Grunewald Committed by Adam Mercer
Browse files

debian packaging updates

ensure the correct version of python is used
parent 9cb8d005
python-glue (1.28.1-2) unstable; urgency=low
* python version fix (c&p from 1.28-5)
-- Steffen Grunewald <steffen.grunewald@aei.mpg.de> Wed, 26 Aug 2009 09:09:09 +0200
python-glue (1.28.1-1) unstable; urgency=low
* Initial release of 1.28.1
......
......@@ -7,8 +7,8 @@ Standards-Version: 3.7.2
Package: python-glue
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, python2.4 (>= 2.4), python-cjson, python-m2crypto
Recommends: python-numpy (>= 1.0), python-xml, python-pysqlite2 (>= 2.2), libsqlite3-0 (>= 3.3), pyrxp | python-pyrxp, python2.5
Depends: ${shlibs:Depends}, ${misc:Depends}, python (>= 2.4), python-cjson, python-m2crypto
Recommends: python-numpy (>= 1.0), python-xml, python-pysqlite2 (>= 2.2), libsqlite3-0 (>= 3.3), pyrxp | python-pyrxp, python2.4, python2.5
Replaces: glue
Conflicts: glue
Description: The Grid LSC User Environment
......
# Source this file to access GLUE
setenv GLUE_PREFIX /opt/lscsoft/glue
setenv PATH /opt/lscsoft/glue/bin:${PATH}
# dynamically get python version (Carsten Aulbert)
setenv PYSITE_PATH python`python -V 2>&1 | cut -d' ' -f2 | cut -d. -f-2`
if ( $?PYTHONPATH ) then
setenv PYTHONPATH /opt/lscsoft/glue/lib/${PYSITE_PATH}/site-packages:${PYTHONPATH}
else
setenv PYTHONPATH /opt/lscsoft/glue/lib/${PYSITE_PATH}/site-packages
endif
if ( $?LD_LIBRARY_PATH ) then
setenv LD_LIBRARY_PATH /opt/lscsoft/glue/lib/${PYSITE_PATH}/site-packages:${LD_LIBRARY_PATH}
else
setenv LD_LIBRARY_PATH /opt/lscsoft/glue/lib/${PYSITE_PATH}/site-packages
endif
if ( $?DYLD_LIBRARY_PATH ) then
setenv DYLD_LIBRARY_PATH /opt/lscsoft/glue/lib/${PYSITE_PATH}/site-packages:${DYLD_LIBRARY_PATH}
else
setenv DYLD_LIBRARY_PATH /opt/lscsoft/glue/lib/${PYSITE_PATH}/site-packages
endif
# Source this file to access GLUE
setenv GLUE_PREFIX /opt/lscsoft/glue
setenv PATH /opt/lscsoft/glue/bin:${PATH}
# dynamically get python version (Carsten Aulbert)
setenv PYSITE_PATH python`python -V 2>&1 | cut -d' ' -f2 | cut -d. -f-2`
if ( $?PYTHONPATH ) then
setenv PYTHONPATH /opt/lscsoft/glue/lib/${PYSITE_PATH}/site-packages:${PYTHONPATH}
else
setenv PYTHONPATH /opt/lscsoft/glue/lib/${PYSITE_PATH}/site-packages
endif
if ( $?LD_LIBRARY_PATH ) then
setenv LD_LIBRARY_PATH /opt/lscsoft/glue/lib/${PYSITE_PATH}/site-packages:${LD_LIBRARY_PATH}
else
setenv LD_LIBRARY_PATH /opt/lscsoft/glue/lib/${PYSITE_PATH}/site-packages
endif
if ( $?DYLD_LIBRARY_PATH ) then
setenv DYLD_LIBRARY_PATH /opt/lscsoft/glue/lib/${PYSITE_PATH}/site-packages:${DYLD_LIBRARY_PATH}
else
setenv DYLD_LIBRARY_PATH /opt/lscsoft/glue/lib/${PYSITE_PATH}/site-packages
endif
# Source this file to access GLUE
GLUE_PREFIX=/opt/lscsoft/glue
export GLUE_PREFIX
# dynamically get python version (Carsten Aulbert)
PYSITE_PATH=python`python -V 2>&1 | cut -d' ' -f2 | cut -d. -f-2`
PATH=/opt/lscsoft/glue/bin:${PATH}
PYTHONPATH=/opt/lscsoft/glue/lib/${PYSITE_PATH}/site-packages:${PYTHONPATH}
LD_LIBRARY_PATH=/opt/lscsoft/glue/lib/${PYSITE_PATH}/site-packages:${LD_LIBRARY_PATH}
DYLD_LIBRARY_PATH=/opt/lscsoft/glue/lib/${PYSITE_PATH}/site-packages:${DYLD_LIBRARY_PATH}
export PATH PYTHONPATH LD_LIBRARY_PATH DYLD_LIBRARY_PATH
# Source this file to access GLUE
GLUE_PREFIX=/opt/lscsoft/glue
export GLUE_PREFIX
# dynamically get python version (Carsten Aulbert)
PYSITE_PATH=python`python -V 2>&1 | cut -d' ' -f2 | cut -d. -f-2`
PATH=/opt/lscsoft/glue/bin:${PATH}
PYTHONPATH=/opt/lscsoft/glue/lib/${PYSITE_PATH}/site-packages:${PYTHONPATH}
LD_LIBRARY_PATH=/opt/lscsoft/glue/lib/${PYSITE_PATH}/site-packages:${LD_LIBRARY_PATH}
DYLD_LIBRARY_PATH=/opt/lscsoft/glue/lib/${PYSITE_PATH}/site-packages:${DYLD_LIBRARY_PATH}
export PATH PYTHONPATH LD_LIBRARY_PATH DYLD_LIBRARY_PATH
......@@ -62,7 +62,7 @@ install: build
# $(MAKE) DESTDIR=$(CURDIR)/debian/$(PACKAGE) install
mkdir -p $(CURDIR)/debian/$(PACKAGE)/$(PREFIX)/share/doc/glue
set -e; \
for v in 2.5 2.4; do \
for v in 2.4 2.5; do \
CFLAGS="$(CFLAGS)" \
python$$v setup.py build; \
CFLAGS="$(CFLAGS)" \
......@@ -86,10 +86,11 @@ install: build
set -e; \
for i in `find debian/$(PACKAGE)/$(PREFIX)/bin -type f`; do \
echo $$i; \
if head -n1 $$i | grep -q '^#!.*python$$' ; then \
sed -i '1s/python$$/python2.4/' $$i; \
if head -n1 $$i | grep -q '^#!.*python2\..' ; then \
sed -i '1s/python2\../python/' $$i; \
fi ; \
done
cp -p debian/glue-user-env.* $(CURDIR)/debian/$(PACKAGE)/$(PREFIX)/etc/
binary: build install
dh_testdir
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment