-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'sub_queue_and_find_py_venv' into release-0.15.3
- Loading branch information
Showing
6 changed files
with
71 additions
and
36 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ | |
'requests', | ||
'six', | ||
'yapsy', | ||
'nose', | ||
'pylint==1.7.1' | ||
], | ||
classifiers = [ | ||
|
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,36 +1,42 @@ | ||
#!/bin/bash | ||
|
||
# findPython.sh: help determine installation location for this package, | ||
# by identifying existing candidate Python installations | ||
# config.sh: Help determine installation location for gdctools package, | ||
# by identifying existing Python installations as candidates. | ||
|
||
InstallDir= | ||
|
||
# Use any Python3 installation, or Python2 if >= 2.7 | ||
Python=`type -P python` | ||
if [ -n "$Python" ] ; then | ||
case `python --version 2>&1 | awk '{print $NF}'` in | ||
2.7*| 3.*) | ||
InstallDir=`dirname $Python` | ||
InstallDir=`dirname $InstallDir` | ||
;; | ||
esac | ||
if [ -n "$1" ] ; then | ||
PythonExe=$1 | ||
shift | ||
else | ||
PythonExe=python | ||
fi | ||
|
||
# For convenience, give precedence to well-known directories @ Broad Institute | ||
BroadDirs="/local/firebrowse/latest /xchip/tcga/Tools/gdac/latest" | ||
for dir in $BroadDirs ; do | ||
if [ -d $dir ] ; then | ||
InstallDir=$dir | ||
break | ||
fi | ||
done | ||
|
||
if [ -z "$InstallDir" ] ; then | ||
# Nothing found: for convenience, look for well-known dirs @ Broad Institute | ||
BroadDirs="/local/firebrowse/latest /xchip/tcga/Tools/gdac/latest" | ||
for dir in $BroadDirs ; do | ||
if [ -d $dir ] ; then | ||
InstallDir=$dir | ||
break | ||
fi | ||
done | ||
if [ -n "$VIRTUAL_ENV" ] ; then | ||
InstallDir=$VIRTUAL_ENV | ||
else | ||
Python=`type -P $PythonExe` | ||
if [ -n "$Python" ]; then | ||
InstallDir=`dirname $Python` | ||
InstallDir=`dirname $InstallDir` | ||
fi | ||
fi | ||
fi | ||
|
||
if [ -z "$InstallDir" ] ; then | ||
echo "Error: could not find an appropriate python installation to use" >&2 | ||
echo "Error: could not find a $PythonExe installation to use" >&2 | ||
exit 1 | ||
fi | ||
|
||
echo "$InstallDir" | ||
exit 0 | ||
exit 0 |