-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Determine the shebang for bin/cryptosite at make time (so that it will work with either Python 2 or Python 3). Use sys.executable in Python code rather than /usr/bin/python so that we respect the configured Python version.
- Loading branch information
Showing
16 changed files
with
36 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
include Makefile.include | ||
|
||
.PHONY: install test | ||
.PHONY: install test bin clean | ||
|
||
install: | ||
bin: | ||
${MAKE} -C bin | ||
|
||
clean: | ||
${MAKE} -C bin clean | ||
|
||
install: bin | ||
${MAKE} -C data install | ||
${MAKE} -C data/ligands install | ||
${MAKE} -C bin install | ||
${MAKE} -C lib/cryptosite install | ||
${MAKE} -C lib/cryptosite/config install | ||
|
||
test: | ||
test: bin | ||
nosetests --processes=-1 test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
PREFIX=/usr/local | ||
DATADIR=${PREFIX}/share/data/cryptosite | ||
BINDIR=${PREFIX}/bin | ||
PYTHON=python | ||
PYTHONDIR=${PREFIX}/python | ||
UNIPROT=/usr/share/databases/uniprot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
cryptosite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
include ../Makefile.include | ||
|
||
.PHONY: install | ||
.PHONY: install clean | ||
|
||
cryptosite: cryptosite.in | ||
FULL_PYTHON=`which ${PYTHON}`; sed -e "s^#!.*^#!$$FULL_PYTHON^" $< > $@ && chmod a+x $@ | ||
|
||
FILES=${BINDIR}/cryptosite | ||
|
||
install: ${FILES} | ||
|
||
clean: | ||
rm -f cryptosite | ||
|
||
${BINDIR}/%: % | ||
@if [ ! -d ${BINDIR} ]; then mkdir -p ${BINDIR}; fi | ||
install $< $@ |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters