-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revised setup.py, enforcing prerequisite installation order. Updated …
…(development) bash install wrappers over setup script.
- Loading branch information
Showing
3 changed files
with
86 additions
and
12 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,6 +1,25 @@ | ||
thisScriptPath=`realpath $0` | ||
thisDirPath=`dirname ${thisScriptPath}` | ||
case "$(uname -s)" in | ||
Linux*) context=Linux;; | ||
Darwin*) context=Mac;; | ||
CYGWIN*) context=Cygwin;; | ||
MINGW*) context=MinGw;; | ||
*) context=UNKNOWN;; | ||
esac | ||
|
||
if [ "${context}" == "Linux" ]; then | ||
thisScriptPath=`realpath $0` | ||
thisDirPath=`dirname ${thisScriptPath}` | ||
py2=python | ||
elif [ "${context}" == "Mac" ]; then | ||
thisDirPath=$(cd "$(dirname "$0")"; pwd) | ||
# using HomeBrew install of Py2, rather than stock... | ||
py2=python2 | ||
else | ||
# this will work as well as not having any of this... | ||
thisDirPath=. | ||
py2=python | ||
fi | ||
cd "${thisDirPath}" | ||
|
||
python -m pip install . | ||
${py2} -m pip install . | ||
echo Press enter to continue; read dummy; |
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