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
dc5ead69
Commit
dc5ead69
authored
12 years ago
by
Piotr Ożarowski
Browse files
Options
Downloads
Patches
Plain Diff
pyversions: add support for DEBPYTHON_{DEFAULT,SUPPORTED}
parent
8f42f078
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
debian/changelog
+3
-3
3 additions, 3 deletions
debian/changelog
debian/pyversions.py
+5
-2
5 additions, 2 deletions
debian/pyversions.py
with
8 additions
and
5 deletions
debian/changelog
+
3
−
3
View file @
dc5ead69
...
...
@@ -11,9 +11,9 @@ python-defaults (2.7.3-1) unstable; urgency=low
+ "/usr/bin/python2" → "/usr/bin/python"
- new --shebang option to replace all shebangs in bin dirs
(example: --shebang /usr/bin/python2.6)
* dh_python2, pycompile: allow to override system's list of
supported
Python versions via DEBPYTHON_SUPPORTED and default Python
version via
DEBPYTHON_DEFAULT env. variables
*
pyversions,
dh_python2, pycompile: allow to override system's list of
supported
Python versions via DEBPYTHON_SUPPORTED and default Python
version via
DEBPYTHON_DEFAULT env. variables
[ Scott Kitterman ]
* Bump upstream version to match current unstable/wheezy python2.7 version
...
...
This diff is collapsed.
Click to expand it.
debian/pyversions.py
+
5
−
2
View file @
dc5ead69
...
...
@@ -110,7 +110,8 @@ def unsupported_versions(version_only=False):
else
:
return
_unsupported_versions
_supported_versions
=
None
_supported_versions
=
[
"
python%s
"
%
ver
for
ver
in
\
os
.
environ
.
get
(
'
DEBPYTHON_SUPPORTED
'
,
''
).
split
()]
def
supported_versions
(
version_only
=
False
):
global
_supported_versions
if
not
_supported_versions
:
...
...
@@ -144,7 +145,9 @@ def supported_versions(version_only=False):
else
:
return
_supported_versions
_default_version
=
None
_default_version
=
"
python%s
"
%
os
.
environ
.
get
(
'
DEBPYTHON_DEFAULT
'
,
''
)
if
_default_version
==
'
python
'
:
_default_version
=
None
def
default_version
(
version_only
=
False
):
global
_default_version
if
not
_default_version
:
...
...
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