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
d9492bab
Commit
d9492bab
authored
Nov 03, 2011
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Plain Diff
Issue #13307: fix bdist_rpm test failures
parents
a1e23d2c
4d25e1b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
command/build_py.py
command/build_py.py
+3
-3
command/install_lib.py
command/install_lib.py
+3
-2
No files found.
command/build_py.py
View file @
d9492bab
...
...
@@ -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
)
...
...
command/install_lib.py
View file @
d9492bab
...
...
@@ -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