Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
8161022d
Commit
8161022d
authored
Oct 02, 2000
by
Greg Ward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added --compile, --optimize options so users have an easy way to
instruct the "install_lib" command from the command-line.
parent
cb9c9aed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
Lib/distutils/command/install.py
Lib/distutils/command/install.py
+12
-0
No files found.
Lib/distutils/command/install.py
View file @
8161022d
...
@@ -90,6 +90,15 @@ class install (Command):
...
@@ -90,6 +90,15 @@ class install (Command):
(
'install-data='
,
None
,
(
'install-data='
,
None
,
"installation directory for data files"
),
"installation directory for data files"
),
# Byte-compilation options -- see install_lib.py for details, as
# these are duplicated from there (but only install_lib does
# anything with them).
(
'compile'
,
'c'
,
"compile .py to .pyc [default]"
),
(
'no-compile'
,
None
,
"don't compile .py files"
),
(
'optimize='
,
'O'
,
"also compile with optimization: -O1 for
\
"
python -O
\
"
, "
"-O2 for
\
"
python -OO
\
"
, and -O0 to disable [default: -O0]"
),
# Miscellaneous control options
# Miscellaneous control options
(
'force'
,
'f'
,
(
'force'
,
'f'
,
"force installation (overwrite any existing files)"
),
"force installation (overwrite any existing files)"
),
...
@@ -135,6 +144,9 @@ class install (Command):
...
@@ -135,6 +144,9 @@ class install (Command):
self
.
install_scripts
=
None
self
.
install_scripts
=
None
self
.
install_data
=
None
self
.
install_data
=
None
self
.
compile
=
None
self
.
optimize
=
None
# These two are for putting non-packagized distributions into their
# These two are for putting non-packagized distributions into their
# own directory and creating a .pth file if it makes sense.
# own directory and creating a .pth file if it makes sense.
# 'extra_path' comes from the setup file; 'install_path_file' can
# 'extra_path' comes from the setup file; 'install_path_file' can
...
...
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