Install context.py as a script
This commit is contained in:
parent
3aba07e0a5
commit
203b2a8acc
1 changed files with 4 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
PYTHON=python
|
||||
PACKAGE = $(shell basename `pwd`)
|
||||
PYFILES = $(wildcard *.py)
|
||||
PYSCRIPTS = context.py
|
||||
PYVER := $(shell $(PYTHON) -c 'import sys; print "%.3s" %(sys.version)')
|
||||
PYSYSDIR := $(shell $(PYTHON) -c 'import sys; print sys.prefix')
|
||||
PYLIBDIR = $(PYSYSDIR)/lib/python$(PYVER)
|
||||
|
|
@ -17,4 +18,7 @@ install:
|
|||
for p in $(PYFILES) ; do \
|
||||
install -m 644 $$p $(DESTDIR)/$(PKGDIR)/$$p; \
|
||||
done
|
||||
for p in $(PYSCRIPTS) ; do \
|
||||
chmod 0755 $(DESTDIR)/$(PKGDIR)/$$p; \
|
||||
done
|
||||
$(PYTHON) -c "import compileall; compileall.compile_dir('$(DESTDIR)/$(PKGDIR)', 1, '$(PYDIR)', 1)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue