Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
Michiel Cottaar
fslpy
Commits
67967a53
Commit
67967a53
authored
8 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
Make setup.py backwards compatible with ancient python.
parent
b6870cf1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
setup.py
+2
-2
2 additions, 2 deletions
setup.py
with
2 additions
and
2 deletions
setup.py
+
2
−
2
View file @
67967a53
...
@@ -71,7 +71,7 @@ class fsl_sdist(sdist):
...
@@ -71,7 +71,7 @@ class fsl_sdist(sdist):
def
__patch_py_file
(
self
,
filename
,
licence
):
def
__patch_py_file
(
self
,
filename
,
licence
):
licence
=
licence
.
split
(
'
\n
'
)
licence
=
licence
.
split
(
'
\n
'
)
licence
=
[
'
# {}
'
.
format
(
l
)
for
l
in
licence
]
licence
=
[
'
# {
0
}
'
.
format
(
l
)
for
l
in
licence
]
with
open
(
filename
,
'
rt
'
)
as
f
:
with
open
(
filename
,
'
rt
'
)
as
f
:
lines
=
f
.
read
().
split
(
'
\n
'
)
lines
=
f
.
read
().
split
(
'
\n
'
)
...
@@ -82,7 +82,7 @@ class fsl_sdist(sdist):
...
@@ -82,7 +82,7 @@ class fsl_sdist(sdist):
# Insert the fsl hashbang and the licence
# Insert the fsl hashbang and the licence
lines
=
[
'
#!/usr/bin/env fslpython
'
]
+
[
'
#
'
]
+
licence
+
lines
lines
=
[
'
#!/usr/bin/env fslpython
'
]
+
[
'
#
'
]
+
licence
+
lines
lines
=
[
'
{}
\n
'
.
format
(
l
)
for
l
in
lines
]
lines
=
[
'
{
0
}
\n
'
.
format
(
l
)
for
l
in
lines
]
with
open
(
filename
,
'
wt
'
)
as
f
:
with
open
(
filename
,
'
wt
'
)
as
f
:
f
.
writelines
(
lines
)
f
.
writelines
(
lines
)
...
...
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