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
3b120ab3
Commit
3b120ab3
authored
Sep 13, 1999
by
Greg Ward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New command -- install_ext to install extension modules.
parent
138ce653
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
Lib/distutils/command/install_ext.py
Lib/distutils/command/install_ext.py
+38
-0
No files found.
Lib/distutils/command/install_ext.py
0 → 100644
View file @
3b120ab3
"""install_ext
Implement the Distutils "install_ext" command to install extension modules."""
# created 1999/09/12, Greg Ward
__rcsid__
=
"$Id$"
from
distutils.core
import
Command
from
distutils.util
import
copy_tree
class
InstallExt
(
Command
):
options
=
[(
'dir='
,
'd'
,
"directory to install to"
),
(
'build-dir='
,
'b'
,
"build directory (where to install from)"
),
]
def
set_default_options
(
self
):
# let the 'install' command dictate our installation directory
self
.
dir
=
None
self
.
build_dir
=
None
def
set_final_options
(
self
):
self
.
set_undefined_options
(
'install'
,
(
'build_platlib'
,
'build_dir'
),
(
'install_site_platlib'
,
'dir'
))
def
run
(
self
):
self
.
set_final_options
()
# Dump the entire "build/platlib" directory (or whatever it really
# is; "build/platlib" is the default) to the installation target
# (eg. "/usr/local/lib/python1.5/site-packages"). Note that
# putting files in the right package dir is already done when we
# build.
outfiles
=
self
.
copy_tree
(
self
.
build_dir
,
self
.
dir
)
# class InstallExt
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