Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
python-defaults
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pkg
python-defaults
Commits
3982ccb3
Commit
3982ccb3
authored
14 years ago
by
Piotr Ożarowski
Browse files
Options
Downloads
Patches
Plain Diff
strip "python" from $2
parent
021816ea
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
runtime.d/public_modules.rtinstall
+2
-1
2 additions, 1 deletion
runtime.d/public_modules.rtinstall
runtime.d/public_modules.rtremove
+3
-2
3 additions, 2 deletions
runtime.d/public_modules.rtremove
with
5 additions
and
3 deletions
runtime.d/public_modules.rtinstall
+
2
−
1
View file @
3982ccb3
#! /bin/sh -e
VERSION
=
${
2
#python
}
if
which python
>
/dev/null 2>&1
&&
which pycompile
>
/dev/null 2>&1
;
then
pycompile
-V
$
2
/usr/lib/
python
$2
/
pycompile
-V
$
VERSION
/usr/lib/
$VERSION
/
else
echo
>
&2
"python or pycompile not found in
$(
basename
$0
)
hook."
exit
1
...
...
This diff is collapsed.
Click to expand it.
runtime.d/public_modules.rtremove
+
3
−
2
View file @
3982ccb3
#! /bin/sh -e
VERSION
=
${
2
#python
}
if
which python
>
/dev/null 2>&1
&&
which pyclean
>
/dev/null 2>&1
;
then
pyclean
-V
$
2
/usr/lib/python
$
2
/
pyclean
-V
$
VERSION
/usr/lib/python
$
VERSION
/
else
find /usr/lib/python
$
2
/
-name
'*.py[co]'
-delete
find /usr/lib/python
$
VERSION
/
-name
'*.py[co]'
-delete
fi
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