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
ef297a8a
Commit
ef297a8a
authored
Nov 03, 2011
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Plain Diff
Issue #13307: fix bdist_rpm test failures
parents
df5bccc8
cb2f84a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
Lib/distutils/command/build_py.py
Lib/distutils/command/build_py.py
+3
-3
Lib/distutils/command/install_lib.py
Lib/distutils/command/install_lib.py
+3
-2
No files found.
Lib/distutils/command/build_py.py
View file @
ef297a8a
...
...
@@ -3,7 +3,7 @@
Implements the Distutils 'build_py' command."""
import
sys
,
os
import
sys
import
imp
from
glob
import
glob
from
distutils.core
import
Command
...
...
@@ -311,9 +311,9 @@ class build_py (Command):
outputs
.
append
(
filename
)
if
include_bytecode
:
if
self
.
compile
:
outputs
.
append
(
filename
+
"c"
)
outputs
.
append
(
imp
.
cache_from_source
(
filename
,
True
)
)
if
self
.
optimize
>
0
:
outputs
.
append
(
filename
+
"o"
)
outputs
.
append
(
imp
.
cache_from_source
(
filename
,
False
)
)
outputs
+=
[
os
.
path
.
join
(
build_dir
,
filename
)
...
...
Lib/distutils/command/install_lib.py
View file @
ef297a8a
...
...
@@ -4,6 +4,7 @@ Implements the Distutils 'install_lib' command
(install all Python modules)."""
import
os
import
imp
import
sys
from
distutils.core
import
Command
...
...
@@ -164,9 +165,9 @@ class install_lib(Command):
if
ext
!=
PYTHON_SOURCE_EXTENSION
:
continue
if
self
.
compile
:
bytecode_files
.
append
(
py_file
+
"c"
)
bytecode_files
.
append
(
imp
.
cache_from_source
(
py_file
,
True
)
)
if
self
.
optimize
>
0
:
bytecode_files
.
append
(
py_file
+
"o"
)
bytecode_files
.
append
(
imp
.
cache_from_source
(
py_file
,
False
)
)
return
bytecode_files
...
...
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