Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.admin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
bob
bob.admin
Commits
a2420dc0
Commit
a2420dc0
authored
8 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
Tries to use virtualenv instead of conda for scratch environments
parent
7ed94563
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gitlab/before_build.sh
+6
-16
6 additions, 16 deletions
gitlab/before_build.sh
gitlab/before_test.sh
+3
-4
3 additions, 4 deletions
gitlab/before_test.sh
with
9 additions
and
20 deletions
gitlab/before_build.sh
+
6
−
16
View file @
a2420dc0
...
@@ -8,27 +8,17 @@ WHEELS_SERVER=`echo ${DOCSERVER} | sed 's;https\?://;;'`
...
@@ -8,27 +8,17 @@ WHEELS_SERVER=`echo ${DOCSERVER} | sed 's;https\?://;;'`
check_env WHEELS_REPOSITORY
check_env WHEELS_REPOSITORY
check_env WHEELS_SERVER
check_env WHEELS_SERVER
#
Clon
es the
conda dev environm
en
t
to use
#
Readi
es the
virtual
en
v
to use
for installation
if
[
!
-d
${
PREFIX
}
]
;
then
if
[
!
-d
${
PREFIX
}
]
;
then
log_info
"Downloading environment list into file
\`
env.txt'..."
log_info
"Creating virtualenv installation at
${
PREFIX
}
..."
run_cmd curl
--silent
--output
env.txt https://gitlab.idiap.ch/bob/bob.admin/raw/master/install/
${
ARCH
}
/devel-
${
PYVER
}
.txt
run_cmd
${
BOB_PREFIX_PATH
}
/bin/virtualenv
--system-site-packages
${
PREFIX
}
log_info
"Bootstrapping conda installation at
${
PREFIX
}
..."
run_cmd
${
CONDA_FOLDER
}
/bin/conda clean
--lock
run_cmd
${
CONDA_FOLDER
}
/bin/conda create
--prefix
${
PREFIX
}
--file
env.txt
--yes
# Dirty fix to libjpeg.8 compilation issues:
# https://github.com/ContinuumIO/anaconda-issues/issues/1042
if
[
"
${
ARCH
}
"
==
"macosx"
]
&&
[
-e
"
${
PREFIX
}
/lib/libjpeg.8.dylib"
]
;
then
run_cmd install_name_tool
-id
@rpath/libjpeg.8.dylib
${
PREFIX
}
/lib/libjpeg.8.dylib
fi
else
else
log_warn
"Prefix directory
${
PREFIX
}
exists, not re-installing..."
log_warn
"Prefix directory
${
PREFIX
}
exists, not re-installing..."
fi
fi
# Source the newly created conda environment
# Source the newly created virtualenv
log_info
"Running
\"
source
${
CONDA_FOLDER
}
/bin/activate
${
PREFIX
}
\"
..."
log_info
"
$
source
${
PREFIX
}
/bin/activate"
source
${
CONDA_FOLDER
}
/bin/activate
${
PREFIX
}
source
${
PREFIX
}
/bin/activate
log_info
"Environment
${
PREFIX
}
activated"
# Verify where pip is installed
# Verify where pip is installed
use_pip
=
`
which pip
`
use_pip
=
`
which pip
`
...
...
This diff is collapsed.
Click to expand it.
gitlab/before_test.sh
+
3
−
4
View file @
a2420dc0
...
@@ -8,10 +8,9 @@ source $(dirname ${0})/functions.sh
...
@@ -8,10 +8,9 @@ source $(dirname ${0})/functions.sh
run_cmd
$(
dirname
${
0
}
)
/before_build.sh
run_cmd
$(
dirname
${
0
}
)
/before_build.sh
# Source the newly created conda environment
# Source the newly created virtualenv
log_info
"Running
\"
source
${
CONDA_FOLDER
}
/bin/activate
${
PREFIX
}
\"
..."
log_info
"
$
source
${
PREFIX
}
/bin/activate"
source
${
CONDA_FOLDER
}
/bin/activate
${
PREFIX
}
source
${
PREFIX
}
/bin/activate
log_info
"Environment
${
PREFIX
}
activated"
# Verify where pip is installed
# Verify where pip is installed
use_pip
=
`
which pip
`
use_pip
=
`
which pip
`
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment