Skip to content

Commit 4ec2be3

Browse files
author
Pengfei Ding
committed
add moo into the requirements.txt with URL to its github repo; remove special handling of moo in the setup_python_env script
1 parent 9210abb commit 4ec2be3

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

Diff for: scripts/pyvenv_requirements.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@ numpy==1.19.4
1313
openpyxl==3.0.5
1414
pyrsistent==0.17.3
1515
six==1.15.0
16-
# Comment out moo, as by default PyPI's moo will be picked up.
17-
# moo==0.2.0
16+
moo==git+git://github.com/brettviren/[email protected]#egg=moo

Diff for: scripts/setup_python_venv

+11-11
Original file line numberDiff line numberDiff line change
@@ -81,17 +81,17 @@ fi
8181
###
8282
# special handling of the moo module since PyPI has a module with same name.
8383
###
84-
if python -c "import moo" &> /dev/null; then
85-
echo "INFO [`eval $timenow`]: moo is installed."
86-
pip list|grep moo
87-
else
88-
echo "INFO [`eval $timenow`]: moo is not installed. Install it now."
89-
pip install git+git://github.com/brettviren/moo.git
90-
if [[ $? != "0" ]]; then
91-
echo "ERROR [`eval $timenow`]: Installing moo failed."
92-
exit 13
93-
fi
94-
fi
84+
#if python -c "import moo" &> /dev/null; then
85+
# echo "INFO [`eval $timenow`]: moo is installed."
86+
# pip list|grep moo
87+
#else
88+
# echo "INFO [`eval $timenow`]: moo is not installed. Install it now."
89+
# pip install git+git://github.com/brettviren/moo.git
90+
# if [[ $? != "0" ]]; then
91+
# echo "ERROR [`eval $timenow`]: Installing moo failed."
92+
# exit 13
93+
# fi
94+
#fi
9595

9696

9797
echo "INFO [`eval $timenow`]: $VEVN_NAME has been activated, use \"deactivate\" to exit the venv."

0 commit comments

Comments
 (0)