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
ecff8b73
Commit
ecff8b73
authored
Oct 24, 2009
by
Tarek Ziadé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed warning and error message
parent
32bc9439
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
command/build_py.py
command/build_py.py
+1
-1
command/install_lib.py
command/install_lib.py
+1
-1
tests/test_build_py.py
tests/test_build_py.py
+1
-1
tests/test_install_lib.py
tests/test_install_lib.py
+1
-1
util.py
util.py
+1
-1
No files found.
command/build_py.py
View file @
ecff8b73
...
...
@@ -374,7 +374,7 @@ class build_py(Command):
def
byte_compile
(
self
,
files
):
if
sys
.
dont_write_bytecode
:
self
.
warn
(
'byte-compil
e not supported on this platform
, skipping.'
)
self
.
warn
(
'byte-compil
ing is disabled
, skipping.'
)
return
from
distutils.util
import
byte_compile
...
...
command/install_lib.py
View file @
ecff8b73
...
...
@@ -121,7 +121,7 @@ class install_lib(Command):
def
byte_compile
(
self
,
files
):
if
sys
.
dont_write_bytecode
:
self
.
warn
(
'byte-compil
e not supported on this platform
, skipping.'
)
self
.
warn
(
'byte-compil
ing is disabled
, skipping.'
)
return
from
distutils.util
import
byte_compile
...
...
tests/test_build_py.py
View file @
ecff8b73
...
...
@@ -103,7 +103,7 @@ class BuildPyTestCase(support.TempdirManager,
finally
:
sys
.
dont_write_bytecode
=
old_dont_write_bytecode
self
.
assertTrue
(
'byte-compil
e not supported
'
in
self
.
logs
[
0
][
1
])
self
.
assertTrue
(
'byte-compil
ing is disabled
'
in
self
.
logs
[
0
][
1
])
def
test_suite
():
return
unittest
.
makeSuite
(
BuildPyTestCase
)
...
...
tests/test_install_lib.py
View file @
ecff8b73
...
...
@@ -92,7 +92,7 @@ class InstallLibTestCase(support.TempdirManager,
finally
:
sys
.
dont_write_bytecode
=
old_dont_write_bytecode
self
.
assertTrue
(
'byte-compil
e not supported
'
in
self
.
logs
[
0
][
1
])
self
.
assertTrue
(
'byte-compil
ing is disabled
'
in
self
.
logs
[
0
][
1
])
def
test_suite
():
return
unittest
.
makeSuite
(
InstallLibTestCase
)
...
...
util.py
View file @
ecff8b73
...
...
@@ -448,7 +448,7 @@ def byte_compile(py_files, optimize=0, force=0, prefix=None, base_dir=None,
"""
# nothing is done if sys.dont_write_bytecode is True
if sys.dont_write_bytecode:
raise DistutilsByteCompileError('
byte
-
compiling
not
support
ed
.
')
raise DistutilsByteCompileError('
byte
-
compiling
is
disabl
ed
.
')
# First, if the caller didn'
t
force
us
into
direct
or
indirect
mode
,
# figure out which mode we should be in. We take a conservative
...
...
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