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
3cac3f41
Commit
3cac3f41
authored
Jun 24, 2000
by
Greg Ward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print a warning if we install a data file right in install_dir.
Tweaked help text.
parent
2bfcf462
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
command/install_data.py
command/install_data.py
+7
-3
No files found.
command/install_data.py
View file @
3cac3f41
...
...
@@ -18,7 +18,8 @@ class install_data (Command):
user_options
=
[
(
'install-dir='
,
'd'
,
"directory to install the files to"
),
"base directory for installating data files "
"(default: installation base dir)"
),
(
'root='
,
None
,
"install everything relative to this alternate root directory"
),
]
...
...
@@ -39,11 +40,14 @@ class install_data (Command):
self
.
mkpath
(
self
.
install_dir
)
for
f
in
self
.
data_files
:
if
type
(
f
)
==
StringType
:
# its a simple file, so copy it
# it's a simple file, so copy it
self
.
warn
(
"setup script did not provide a directory for "
"'%s' -- installing right in '%s'"
%
(
f
,
self
.
install_dir
))
out
=
self
.
copy_file
(
f
,
self
.
install_dir
)
self
.
outfiles
.
append
(
out
)
else
:
# its a tuple with path to install to and a list of files
# it
'
s a tuple with path to install to and a list of files
dir
=
f
[
0
]
if
not
os
.
path
.
isabs
(
dir
):
dir
=
os
.
path
.
join
(
self
.
install_dir
,
dir
)
...
...
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