Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
kwant
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Joseph Weston
kwant
Commits
1a825c97
Commit
1a825c97
authored
12 years ago
by
Christoph Groth
Browse files
Options
Downloads
Patches
Plain Diff
make setup.py work again with python 2.6
parent
39c70123
No related branches found
Branches containing commit
Tags
v0.1.0
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
setup.py
+5
-4
5 additions, 4 deletions
setup.py
with
5 additions
and
4 deletions
setup.py
+
5
−
4
View file @
1a825c97
...
...
@@ -75,10 +75,11 @@ class build_tut(Command):
os
.
mkdir
(
TUT_DIR
)
for
in_fname
in
glob
.
glob
(
TUT_GLOB
):
out_fname
=
os
.
path
.
join
(
TUT_DIR
,
os
.
path
.
basename
(
in_fname
))
with
open
(
in_fname
)
as
in_file
,
open
(
out_fname
,
'
w
'
)
as
out_file
:
for
line
in
in_file
:
if
not
line
.
startswith
(
TUT_HIDDEN_PREFIX
):
out_file
.
write
(
line
)
with
open
(
in_fname
)
as
in_file
:
with
open
(
out_fname
,
'
w
'
)
as
out_file
:
for
line
in
in_file
:
if
not
line
.
startswith
(
TUT_HIDDEN_PREFIX
):
out_file
.
write
(
line
)
# Our version of the "build" command also makes sure the tutorial is made.
...
...
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