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
4d25e1b7
Commit
4d25e1b7
authored
Nov 03, 2011
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #13307: fix bdist_rpm test failures
parent
427ee765
Changes
2
Show 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 @
4d25e1b7
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
Implements the Distutils 'build_py' command."""
Implements the Distutils 'build_py' command."""
import
sys
,
os
import
sys
,
os
import
sys
import
imp
from
glob
import
glob
from
glob
import
glob
from
distutils.core
import
Command
from
distutils.core
import
Command
...
@@ -311,9 +311,9 @@ class build_py (Command):
...
@@ -311,9 +311,9 @@ class build_py (Command):
outputs
.
append
(
filename
)
outputs
.
append
(
filename
)
if
include_bytecode
:
if
include_bytecode
:
if
self
.
compile
:
if
self
.
compile
:
outputs
.
append
(
filename
+
"c"
)
outputs
.
append
(
imp
.
cache_from_source
(
filename
,
True
)
)
if
self
.
optimize
>
0
:
if
self
.
optimize
>
0
:
outputs
.
append
(
filename
+
"o"
)
outputs
.
append
(
imp
.
cache_from_source
(
filename
,
False
)
)
outputs
+=
[
outputs
+=
[
os
.
path
.
join
(
build_dir
,
filename
)
os
.
path
.
join
(
build_dir
,
filename
)
...
...
command/install_lib.py
View file @
4d25e1b7
...
@@ -4,6 +4,7 @@ Implements the Distutils 'install_lib' command
...
@@ -4,6 +4,7 @@ Implements the Distutils 'install_lib' command
(install all Python modules)."""
(install all Python modules)."""
import
os
import
os
import
imp
import
sys
import
sys
from
distutils.core
import
Command
from
distutils.core
import
Command
...
@@ -164,9 +165,9 @@ class install_lib(Command):
...
@@ -164,9 +165,9 @@ class install_lib(Command):
if
ext
!=
PYTHON_SOURCE_EXTENSION
:
if
ext
!=
PYTHON_SOURCE_EXTENSION
:
continue
continue
if
self
.
compile
:
if
self
.
compile
:
bytecode_files
.
append
(
py_file
+
"c"
)
bytecode_files
.
append
(
imp
.
cache_from_source
(
py_file
,
True
)
)
if
self
.
optimize
>
0
:
if
self
.
optimize
>
0
:
bytecode_files
.
append
(
py_file
+
"o"
)
bytecode_files
.
append
(
imp
.
cache_from_source
(
py_file
,
False
)
)
return
bytecode_files
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