Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
makefiles
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs
ds
makefiles
Commits
36c1e777
Commit
36c1e777
authored
3 years ago
by
Claudio Scafuri
Browse files
Options
Downloads
Patches
Plain Diff
use python3
parent
6a962bd7
No related branches found
No related tags found
1 merge request
!1
use python3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile-template-python-ds
+1
-1
1 addition, 1 deletion
Makefile-template-python-ds
Makefile-template-python-gui
+1
-1
1 addition, 1 deletion
Makefile-template-python-gui
with
2 additions
and
2 deletions
Makefile-template-python-ds
+
1
−
1
View file @
36c1e777
...
@@ -6,7 +6,7 @@ PY_FILES += $(wildcard src/*.py)
...
@@ -6,7 +6,7 @@ PY_FILES += $(wildcard src/*.py)
default: bin ${PY_FILES}
default: bin ${PY_FILES}
@cp ${PY_FILES} bin/${DIRNAME}
@cp ${PY_FILES} bin/${DIRNAME}
@echo "#!/usr/bin/env python\nimport sys\nsys.path.append(sys.path[0]+'/${DIRNAME}')\nfrom ${MODNAME} import main\nif __name__ == '__main__':\n main()\n" > bin/${NAME}
@echo "#!/usr/bin/env python
3
\nimport sys\nsys.path.append(sys.path[0]+'/${DIRNAME}')\nfrom ${MODNAME} import main\nif __name__ == '__main__':\n main()\n" > bin/${NAME}
@chmod +x bin/${NAME} bin/${DIRNAME}/${MAIN}
@chmod +x bin/${NAME} bin/${DIRNAME}/${MAIN}
bin:
bin:
...
...
This diff is collapsed.
Click to expand it.
Makefile-template-python-gui
+
1
−
1
View file @
36c1e777
...
@@ -7,7 +7,7 @@ PY_FILES += $(wildcard src/*.py)
...
@@ -7,7 +7,7 @@ PY_FILES += $(wildcard src/*.py)
default: bin ${PY_FILES}
default: bin ${PY_FILES}
@cp ${PY_FILES} bin/${DIRNAME}
@cp ${PY_FILES} bin/${DIRNAME}
@echo "#!/usr/bin/env python\nimport sys\nsys.path.append(sys.path[0]+'/${DIRNAME}')\nfrom ${MODNAME} import main\nif __name__ == '__main__':\n main()\n" > bin/${NAME}
@echo "#!/usr/bin/env python
3
\nimport sys\nsys.path.append(sys.path[0]+'/${DIRNAME}')\nfrom ${MODNAME} import main\nif __name__ == '__main__':\n main()\n" > bin/${NAME}
@chmod +x bin/${NAME} bin/${DIRNAME}/${MAIN}
@chmod +x bin/${NAME} bin/${DIRNAME}/${MAIN}
bin:
bin:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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