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
d76bc710
Commit
d76bc710
authored
14 years ago
by
Piotr Ożarowski
Browse files
Options
Downloads
Patches
Plain Diff
dh_python2: Add support for X-Python-Version
parent
884fb149
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
debian/changelog
+1
-0
1 addition, 0 deletions
debian/changelog
debpython/debhelper.py
+5
-4
5 additions, 4 deletions
debpython/debhelper.py
dh_python2
+1
-1
1 addition, 1 deletion
dh_python2
with
7 additions
and
5 deletions
debian/changelog
+
1
−
0
View file @
d76bc710
...
...
@@ -8,6 +8,7 @@ python-defaults (2.6.5-13) UNRELEASED; urgency=low
[ Piotr Ożarowski ]
* Fix documentation typo in pycompile/pycompile.1
* dh_python2: Add support for X-Python-Version
-- Scott Kitterman <scott@kitterman.com> Tue, 10 Aug 2010 22:27:20 -0400
...
...
This diff is collapsed.
Click to expand it.
debpython/debhelper.py
+
5
−
4
View file @
d76bc710
...
...
@@ -78,10 +78,11 @@ class DebHelper(object):
'
uses_breaks
'
:
False
}
elif
line
.
startswith
(
'
Source:
'
):
self
.
source_name
=
line
[
7
:].
strip
()
elif
source_section
and
line
.
startswith
(
'
XS-Python-Version:
'
):
# ignore 3.X requirements
self
.
python_version
=
re
.
compile
(
\
'
,\s>=\s*3.*
'
).
sub
(
''
,
line
[
18
:])
elif
source_section
:
if
line
.
startswith
(
'
XS-Python-Version:
'
)
and
not
self
.
python_version
:
self
.
python_version
=
line
[
18
:].
strip
()
if
line
.
startswith
(
'
X-Python-Version:
'
):
self
.
python_version
=
line
[
17
:].
strip
()
log
.
debug
(
'
source=%s, binary packages=%s
'
,
self
.
source_name
,
\
self
.
packages
.
keys
())
...
...
This diff is collapsed.
Click to expand it.
dh_python2
+
1
−
1
View file @
d76bc710
...
...
@@ -446,7 +446,7 @@ def main():
with
open
(
'
debian/pyversions
'
)
as
fp
:
for
line
in
fp
:
line
=
line
.
strip
()
if
line
:
if
line
and
not
line
.
startswith
(
'
#
'
)
:
options
.
vrange
=
parse_vrange
(
line
)
break
...
...
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