Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
85a862fc
Commit
85a862fc
authored
Aug 25, 2004
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch #736857, #736859: Add -e option to build_scripts.
parent
bf70c77f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
command/build.py
command/build.py
+5
-0
command/build_scripts.py
command/build_scripts.py
+5
-2
No files found.
command/build.py
View file @
85a862fc
...
...
@@ -40,6 +40,8 @@ class build (Command):
"compile extensions and libraries with debugging information"
),
(
'force'
,
'f'
,
"forcibly build everything (ignore file timestamps)"
),
(
'executable='
,
'e'
,
"specify final destination interpreter path (build.py)"
),
]
boolean_options
=
[
'debug'
,
'force'
]
...
...
@@ -61,6 +63,7 @@ class build (Command):
self
.
compiler
=
None
self
.
debug
=
None
self
.
force
=
0
self
.
executable
=
None
def
finalize_options
(
self
):
...
...
@@ -93,6 +96,8 @@ class build (Command):
self
.
build_scripts
=
os
.
path
.
join
(
self
.
build_base
,
'scripts-'
+
sys
.
version
[
0
:
3
])
if
self
.
executable
is
None
:
self
.
executable
=
os
.
path
.
normpath
(
sys
.
executable
)
# finalize_options ()
...
...
command/build_scripts.py
View file @
85a862fc
...
...
@@ -24,6 +24,7 @@ class build_scripts (Command):
user_options
=
[
(
'build-dir='
,
'd'
,
"directory to
\
"
build
\
"
(copy) to"
),
(
'force'
,
'f'
,
"forcibly build everything (ignore file timestamps"
),
(
'executable='
,
'e'
,
"specify final destination interpreter path"
),
]
boolean_options
=
[
'force'
]
...
...
@@ -33,12 +34,14 @@ class build_scripts (Command):
self
.
build_dir
=
None
self
.
scripts
=
None
self
.
force
=
None
self
.
executable
=
None
self
.
outfiles
=
None
def
finalize_options
(
self
):
self
.
set_undefined_options
(
'build'
,
(
'build_scripts'
,
'build_dir'
),
(
'force'
,
'force'
))
(
'force'
,
'force'
),
(
'executable'
,
'executable'
))
self
.
scripts
=
self
.
distribution
.
scripts
def
get_source_files
(
self
):
...
...
@@ -95,7 +98,7 @@ class build_scripts (Command):
outf
=
open
(
outfile
,
"w"
)
if
not
sysconfig
.
python_build
:
outf
.
write
(
"#!%s%s
\
n
"
%
(
os
.
path
.
normpath
(
sys
.
executable
)
,
(
self
.
executable
,
post_interp
))
else
:
outf
.
write
(
"#!%s%s
\
n
"
%
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment