Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scheduling-system
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SMASCH
scheduling-system
Commits
8d76e10f
Commit
8d76e10f
authored
4 years ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
when pip install fails show message how to proceed
parent
52dc201f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!264
Resolve "prepare installable debian package"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
debian-template/postinst
+12
-4
12 additions, 4 deletions
debian-template/postinst
with
12 additions
and
4 deletions
debian-template/postinst
+
12
−
4
View file @
8d76e10f
...
...
@@ -10,7 +10,7 @@ if [ "$1" = "configure" ] && [ -z "$2" ]; then
addgroup
--quiet
--system
smasch
fi
ln
-s
/etc/smasch/smasch.py /usr/lib/smasch/smash/local_settings.py
ln
-s
f
/etc/smasch/smasch.py /usr/lib/smasch/smash/local_settings.py
virtualenv
--python
=
python3 /usr/lib/smasch/env
...
...
@@ -24,9 +24,17 @@ if [ "$1" = "configure" ] && [ -z "$2" ]; then
fi
echo
"Instal python dependencies"
source
/usr/lib/smasch/env/bin/activate
&&
pip
install
-r
/usr/lib/smasch/requirements.txt
--log
$LOG_FILE
source
/usr/lib/smasch/env/bin/activate
&&
pip
install
-r
/usr/lib/smasch/requirements-dev.txt
--log
$LOG_FILE
echo
"Installing python dependencies"
{
source
/usr/lib/smasch/env/bin/activate
&&
pip
install
-r
/usr/lib/smasch/requirements.txt
--log
$LOG_FILE
source
/usr/lib/smasch/env/bin/activate
&&
pip
install
-r
/usr/lib/smasch/requirements-dev.txt
--log
$LOG_FILE
}
||
{
echo
"There was an issue when installing python dependencies."
>>
$LOG_FILE
echo
"There was an issue when installing python dependencies. Reinstall of smasch could help (in case you are upgrading smasch the data should not be lost in the process): "
echo
"apt-get remove smasch"
echo
"apt-get install smasch"
exit
1
}
echo
"Collecting static files"
source
/usr/lib/smasch/env/bin/activate
&&
/usr/lib/smasch/manage.py collectstatic
--no-input
>>
$LOG_FILE
2>&1
...
...
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