Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZEO
Commits
1d433315
Commit
1d433315
authored
Feb 11, 2004
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix copy_other_files() routine for new layout.
parent
21205e7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
17 deletions
+24
-17
setup.py
setup.py
+24
-17
No files found.
setup.py
View file @
1d433315
...
...
@@ -157,27 +157,34 @@ scripts = ["src/scripts/fsdump.py",
]
def
copy_other_files
(
cmd
,
outputbase
):
for
inputdir
in
[
"src/ZConfig/components/basic"
,
"src/ZConfig/components/logger"
,
"src/ZConfig/tests/input"
,
"src/ZConfig/tests/library"
,
"src/ZConfig/tests/library/thing"
,
"src/ZConfig/tests/library/thing/extras"
,
"src/ZConfig/tests/library/widget"
,
"src/ZEO"
,
"src/ZODB"
,
"src/zdaemon"
,
"src/zdaemon/tests"
,
"src/zLOG"
,
# A delicate dance to copy files with certain extensions
# into a package just like .py files.
extensions
=
[
"*.conf"
,
"*.xml"
,
"*.txt"
,
"*.sh"
]
for
dir
in
[
"ZConfig/components/basic"
,
"ZConfig/components/logger"
,
"ZConfig/tests/input"
,
"ZConfig/tests/library"
,
"ZConfig/tests/library/thing"
,
"ZConfig/tests/library/thing/extras"
,
"ZConfig/tests/library/widget"
,
"ZEO"
,
"ZODB"
,
"zdaemon"
,
"zdaemon/tests"
,
"zLOG"
,
]:
inputdir
=
convert_path
(
inputdir
)
outputdir
=
os
.
path
.
join
(
outputbase
,
inputdir
)
dir
=
convert_path
(
dir
)
inputdir
=
os
.
path
.
join
(
"src"
,
dir
)
outputdir
=
os
.
path
.
join
(
outputbase
,
dir
)
if
not
os
.
path
.
exists
(
outputdir
):
dir_util
.
mkpath
(
outputdir
)
for
pattern
in
(
"*.conf"
,
"*.xml"
,
"*.txt"
,
"*.sh"
)
:
for
pattern
in
extensions
:
for
fn
in
glob
.
glob
(
os
.
path
.
join
(
inputdir
,
pattern
)):
cmd
.
copy_file
(
fn
,
os
.
path
.
join
(
outputbase
,
fn
))
# glob is going to give us a path include "src",
# which must be stripped to get the destination dir
dest
=
os
.
path
.
join
(
outputbase
,
fn
[
4
:])
cmd
.
copy_file
(
fn
,
dest
)
class
MyLibInstaller
(
install_lib
):
"""Custom library installer, used to put hosttab in the right place."""
...
...
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