summaryrefslogtreecommitdiffstats
path: root/solaris
diff options
context:
space:
mode:
authorNathan Olla <ollan@deshawresearch.com>2014-07-14 10:16:18 -0400
committerNathan Olla <ollan@deshawresearch.com>2014-07-14 10:47:15 -0400
commitf02ffa67ef3646262aa09e5de6b92021ce27798b (patch)
tree3e0c0039e942a9650ba2a780defd3a67e26d1269 /solaris
parent58e9167a8614e2c549e000b697ca88d5b59b5d7b (diff)
downloadbcfg2-f02ffa67ef3646262aa09e5de6b92021ce27798b.tar.gz
bcfg2-f02ffa67ef3646262aa09e5de6b92021ce27798b.tar.bz2
bcfg2-f02ffa67ef3646262aa09e5de6b92021ce27798b.zip
Use PYVERSION in Makefile and gen-prototypes consistently
PYVERSION is already being set in the Makefile but wasn't being used when setup.py gets invoked. Use PYVERSION in gen-prototypes to generate complete packages.
Diffstat (limited to 'solaris')
-rw-r--r--solaris/Makefile4
-rw-r--r--solaris/gen-prototypes.sh2
2 files changed, 3 insertions, 3 deletions
diff --git a/solaris/Makefile b/solaris/Makefile
index 995253ea8..b24ce9195 100644
--- a/solaris/Makefile
+++ b/solaris/Makefile
@@ -2,14 +2,14 @@
PYTHON="/usr/local/bin/python"
VERS=1.3.4-1
-PYVERSION := $(shell $(PYTHON) -c "import sys; print sys.version[0:3]")
+export PYVERSION := $(shell $(PYTHON) -c "import sys; print sys.version[0:3]")
default: clean package
package:
-mkdir tmp tmp/bcfg2-server tmp/bcfg2
-mkdir -p build/lib/$(PYVERSION)/site-packages
- -cd ../ && PYTHONPATH=$(PYTHONPATH):$(PWD)/build/lib/python2.6/site-packages/ $(PYTHON) setup.py install --single-version-externally-managed --record=/dev/null --prefix=$(PWD)/build
+ -cd ../ && PYTHONPATH=$(PYTHONPATH):$(PWD)/build/lib/python$(PYVERSION)/site-packages/ $(PYTHON) setup.py install --single-version-externally-managed --record=/dev/null --prefix=$(PWD)/build
#setuptools appears to use a restictive umask
-chmod -R o+r build/
-cat build/bin/bcfg2 | sed -e 's!/usr/bin/python!$(PYTHON)!' > build/bin/bcfg2.new && mv build/bin/bcfg2.new build/bin/bcfg2
diff --git a/solaris/gen-prototypes.sh b/solaris/gen-prototypes.sh
index 64aff9edb..b0006df16 100644
--- a/solaris/gen-prototypes.sh
+++ b/solaris/gen-prototypes.sh
@@ -1,6 +1,6 @@
#!/bin/sh
cd build
-PP="./lib/python/site-packages/"
+PP="./lib/python${PYVERSION}/site-packages/"
#bcfg2
echo "i pkginfo=./pkginfo.bcfg2" > ../prototype.tmp