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
2022915a
Commit
2022915a
authored
Mar 01, 2000
by
Greg Ward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build reorg: change 'build_dir' option to 'build_lib'.
parent
ee540572
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
Lib/distutils/command/build_py.py
Lib/distutils/command/build_py.py
+8
-8
No files found.
Lib/distutils/command/build_py.py
View file @
2022915a
...
...
@@ -19,19 +19,19 @@ class build_py (Command):
description
=
"
\
"
build
\
"
pure Python modules (copy to build directory)"
user_options
=
[
(
'build-
dir='
,
'd'
,
"directory for platform-shared files
"
),
(
'build-
lib='
,
'd'
,
"directory to
\
"
build
\
"
(copy) to
"
),
]
def
initialize_options
(
self
):
self
.
build_
dir
=
None
self
.
build_
lib
=
None
self
.
modules
=
None
self
.
package
=
None
self
.
package_dir
=
None
def
finalize_options
(
self
):
self
.
set_undefined_options
(
'build'
,
(
'build_lib'
,
'build_
dir
'
))
(
'build_lib'
,
'build_
lib
'
))
# Get the distribution options that are aliases for build_py
# options -- list of packages and list of modules.
...
...
@@ -259,11 +259,11 @@ class build_py (Command):
"'package' must be a string (dot-separated), list, or tuple"
# Now put the module source file into the "build" area -- this is
# easy, we just copy it somewhere under self.build_
dir
(the build
# easy, we just copy it somewhere under self.build_
lib
(the build
# directory for Python source).
outfile_path
=
list
(
package
)
outfile_path
.
append
(
module
+
".py"
)
outfile_path
.
insert
(
0
,
self
.
build_
dir
)
outfile_path
.
insert
(
0
,
self
.
build_
lib
)
outfile
=
apply
(
os
.
path
.
join
,
outfile_path
)
dir
=
os
.
path
.
dirname
(
outfile
)
...
...
@@ -277,9 +277,9 @@ class build_py (Command):
for
(
module
,
package
,
module_file
)
in
modules
:
# Now "build" the module -- ie. copy the source file to
# self.build_
dir
(the build directory for Python source).
# self.build_
lib
(the build directory for Python source).
# (Actually, it gets copied to the directory for this package
# under self.build_
dir
.)
# under self.build_
lib
.)
self
.
build_module
(
module
,
module_file
,
package
)
# build_modules ()
...
...
@@ -300,7 +300,7 @@ class build_py (Command):
modules
=
self
.
find_package_modules
(
package
,
package_dir
)
# Now loop over the modules we found, "building" each one (just
# copy it to self.build_
dir
).
# copy it to self.build_
lib
).
for
(
module
,
module_file
)
in
modules
:
self
.
build_module
(
module
,
module_file
,
package
)
...
...
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