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
60e84ced
Commit
60e84ced
authored
Nov 04, 2013
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backout d80207d15294.
parent
35249e2c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
31 deletions
+0
-31
tests/test_build_py.py
tests/test_build_py.py
+0
-31
No files found.
tests/test_build_py.py
View file @
60e84ced
...
@@ -121,37 +121,6 @@ class BuildPyTestCase(support.TempdirManager,
...
@@ -121,37 +121,6 @@ class BuildPyTestCase(support.TempdirManager,
found
=
os
.
listdir
(
os
.
path
.
join
(
cmd
.
build_lib
,
'__pycache__'
))
found
=
os
.
listdir
(
os
.
path
.
join
(
cmd
.
build_lib
,
'__pycache__'
))
self
.
assertEqual
(
sorted
(
found
),
[
'boiledeggs.%s.pyo'
%
imp
.
get_tag
()])
self
.
assertEqual
(
sorted
(
found
),
[
'boiledeggs.%s.pyo'
%
imp
.
get_tag
()])
def
test_dir_in_package_data
(
self
):
"""
A directory in package_data should not be added to the filelist.
"""
# See bug 19286
sources
=
self
.
mkdtemp
()
pkg_dir
=
os
.
path
.
join
(
sources
,
"pkg"
)
os
.
mkdir
(
pkg_dir
)
open
(
os
.
path
.
join
(
pkg_dir
,
"__init__.py"
),
"w"
).
close
()
docdir
=
os
.
path
.
join
(
pkg_dir
,
"doc"
)
os
.
mkdir
(
docdir
)
open
(
os
.
path
.
join
(
docdir
,
"testfile"
),
"w"
).
close
()
# create the directory that could be incorrectly detected as a file
os
.
mkdir
(
os
.
path
.
join
(
docdir
,
'otherdir'
))
os
.
chdir
(
sources
)
dist
=
Distribution
({
"packages"
:
[
"pkg"
],
"package_data"
:
{
"pkg"
:
[
"doc/*"
]}})
# script_name need not exist, it just need to be initialized
dist
.
script_name
=
os
.
path
.
join
(
sources
,
"setup.py"
)
dist
.
script_args
=
[
"build"
]
dist
.
parse_command_line
()
try
:
dist
.
run_commands
()
except
DistutilsFileError
:
self
.
fail
(
"failed package_data when data dir includes a dir"
)
def
test_dont_write_bytecode
(
self
):
def
test_dont_write_bytecode
(
self
):
# makes sure byte_compile is not used
# makes sure byte_compile is not used
dist
=
self
.
create_dist
()[
1
]
dist
=
self
.
create_dist
()[
1
]
...
...
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