Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
pymc3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ynic-debian
pymc3
Commits
3546f401
Unverified
Commit
3546f401
authored
May 11, 2020
by
Alexandre ANDORRA
Committed by
GitHub
May 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaced ignore-installed flag by force-reinstall (#3918)
parent
e200ba5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
29 deletions
+24
-29
scripts/create_testenv.sh
scripts/create_testenv.sh
+24
-29
No files found.
scripts/create_testenv.sh
View file @
3546f401
...
...
@@ -2,52 +2,47 @@
set
-ex
# fail on first error, print commands
while
test
$#
-gt
0
do
case
"
$1
"
in
--global
)
GLOBAL
=
1
;;
--no-setup
)
NO_SETUP
=
1
;;
esac
shift
while
test
$#
-gt
0
;
do
case
"
$1
"
in
--global
)
GLOBAL
=
1
;;
--no-setup
)
NO_SETUP
=
1
;;
esac
shift
done
command
-v
conda
>
/dev/null 2>&1
||
{
echo
"Requires conda but it is not installed. Run install_miniconda.sh."
>
&2
;
exit
1
;
echo
"Requires conda but it is not installed. Run install_miniconda.sh."
>
&2
exit
1
}
ENVNAME
=
"
${
ENVNAME
:-
testenv
}
"
# if no ENVNAME is specified, use testenv
ENVNAME
=
"
${
ENVNAME
:-
testenv
}
"
# if no ENVNAME is specified, use testenv
PYTHON_VERSION
=
${
PYTHON_VERSION
:-
3
.6
}
# if no python specified, use 3.6
if
[
-z
${
GLOBAL
}
]
then
if
conda
env
list |
grep
-q
${
ENVNAME
}
then
echo
"Environment
${
ENVNAME
}
already exists, keeping up to date"
else
conda create
-n
${
ENVNAME
}
--yes
pip
python
=
${
PYTHON_VERSION
}
fi
source
activate
${
ENVNAME
}
if
[
-z
${
GLOBAL
}
]
;
then
if
conda
env
list |
grep
-q
${
ENVNAME
}
;
then
echo
"Environment
${
ENVNAME
}
already exists, keeping up to date"
else
conda create
-n
${
ENVNAME
}
--yes
pip
python
=
${
PYTHON_VERSION
}
fi
source
activate
${
ENVNAME
}
fi
pip
install
--upgrade
pip
conda
install
--yes
mkl-service
conda
install
--yes
-c
conda-forge python-graphviz
# Install editable using the setup.py
# Travis env is unable to import cached mpl sometimes https://github.com/pymc-devs/pymc3/issues/3423
pip
install
--no-cache-dir
--
ignore-installed
-e
.
pip
install
--no-cache-dir
--
ignore-installed
-r
requirements-dev.txt
pip
install
--no-cache-dir
--
force-reinstall
-e
.
pip
install
--no-cache-dir
--
force-reinstall
-r
requirements-dev.txt
# Install untested, non-required code (linter fails without them)
pip
install
ipython ipywidgets
# Install editable using the setup.py
if
[
-z
${
NO_SETUP
}
]
;
then
python setup.py build_ext
--inplace
python setup.py build_ext
--inplace
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment