Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
csst_proto
Commits
04777c47
Commit
04777c47
authored
2 years ago
by
BO ZHANG
Browse files
Options
Download
Email Patches
Plain Diff
updated build script
parent
9dbb0a64
dev
main
No related merge requests found
Pipeline
#160
passed with stages
in 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pipelines/build.sh
+15
-6
pipelines/build.sh
with
15 additions
and
6 deletions
+15
-6
pipelines/build.sh
+
15
-
6
View file @
04777c47
#!/bin/bash
#!/bin/bash
echo
"===================== prepare for installation ====================="
echo
"===================== prepare for installation ====================="
# show where I am
echo
" > whoami"
echo
" > whoami"
whoami
whoami
echo
" > uname -a"
echo
" > uname -a"
...
@@ -14,6 +15,7 @@ export CSST_SIMS_C3="/nfsdata/share/csst_simulation_data/Cycle-3-SimuData/"
...
@@ -14,6 +15,7 @@ export CSST_SIMS_C3="/nfsdata/share/csst_simulation_data/Cycle-3-SimuData/"
export
CSST_SIMS_C5_2
=
"/nfsdata/share/csst_simulation_data/Cycle-5-SimuData/"
export
CSST_SIMS_C5_2
=
"/nfsdata/share/csst_simulation_data/Cycle-5-SimuData/"
export
AUX_DIR
=
"/nfsdata/users/csstpipeline/L1Pipeline/unittests/"
export
AUX_DIR
=
"/nfsdata/users/csstpipeline/L1Pipeline/unittests/"
# show Python environment
echo
" > which python"
echo
" > which python"
which python
which python
echo
" > which pip"
echo
" > which pip"
...
@@ -22,14 +24,21 @@ echo " > python --version"
...
@@ -22,14 +24,21 @@ echo " > python --version"
python
--version
python
--version
echo
"===================== install requirements ====================="
echo
"===================== install requirements ====================="
pip
install
-r
requirements.txt
if
[
-f
"requirements.txt"
]
;
then
pip
install
-r
requirements.txt
fi
echo
"===================== install package ====================="
echo
"===================== install package ====================="
rm
-rf
dist
if
[
-f
"install_local.sh"
]
;
then
python setup.py build_ext
--inplace
sh install_local.sh
#python setup.py install
else
python setup.py sdist
# default install script
pip
install
dist/
*
.tar.gz
--force-reinstall
rm
-rf
dist
#python setup.py build_ext --inplace
#python setup.py install
python setup.py sdist
pip
install
dist/
*
.tar.gz
--force-reinstall
--no-deps
fi
echo
"===================== show package info ====================="
echo
"===================== show package info ====================="
echo
" > pip show
$JOB_NAME
"
echo
" > pip show
$JOB_NAME
"
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets