Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
598e15d4
Kaydet (Commit)
598e15d4
authored
Ock 30, 2019
tarafından
jdemeyer
Kaydeden (comit)
Antoine Pitrou
Ock 30, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-25592: Improve documentation of distutils data_files (GH-9767)
üst
cfd735ea
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
setupscript.rst
Doc/distutils/setupscript.rst
+14
-11
No files found.
Doc/distutils/setupscript.rst
Dosyayı görüntüle @
598e15d4
...
@@ -524,20 +524,23 @@ following way::
...
@@ -524,20 +524,23 @@ following way::
setup(...,
setup(...,
data_files=[('
bitmaps
', ['
bm
/
b1
.
gif
', '
bm
/
b2
.
gif
']),
data_files=[('
bitmaps
', ['
bm
/
b1
.
gif
', '
bm
/
b2
.
gif
']),
('
config
', ['
cfg
/
data
.
cfg
']),
('
config
', ['
cfg
/
data
.
cfg
']),
('
/
etc
/
init
.
d
', ['
init
-
script
'])]
)
)
Note that you can specify the directory names where the data files will be
installed, but you cannot rename the data files themselves.
Each (*directory*, *files*) pair in the sequence specifies the installation
Each (*directory*, *files*) pair in the sequence specifies the installation
directory and the files to install there. If *directory* is a relative path, it
directory and the files to install there.
is interpreted relative to the installation prefix (Python'
s
``
sys
.
prefix
``
for
pure
-
Python
packages
,
``
sys
.
exec_prefix
``
for
packages
that
contain
extension
Each file name in *files* is interpreted relative to the :file:`setup.py`
modules
).
Each
file
name
in
*
files
*
is
interpreted
relative
to
the
script at the top of the package source distribution. Note that you can
:
file
:`
setup
.
py
`
script
at
the
top
of
the
package
source
distribution
.
No
specify the directory where the data files will be installed, but you cannot
directory
information
from
*
files
*
is
used
to
determine
the
final
location
of
rename the data files themselves.
the
installed
file
;
only
the
name
of
the
file
is
used
.
The *directory* should be a relative path. It is interpreted relative to the
installation prefix (Python'
s
``
sys
.
prefix
``
for
system
installations
;
``
site
.
USER_BASE
``
for
user
installations
).
Distutils
allows
*
directory
*
to
be
an
absolute
installation
path
,
but
this
is
discouraged
since
it
is
incompatible
with
the
wheel
packaging
format
.
No
directory
information
from
*
files
*
is
used
to
determine
the
final
location
of
the
installed
file
;
only
the
name
of
the
file
is
used
.
You
can
specify
the
``
data_files
``
options
as
a
simple
sequence
of
files
You
can
specify
the
``
data_files
``
options
as
a
simple
sequence
of
files
without
specifying
a
target
directory
,
but
this
is
not
recommended
,
and
the
without
specifying
a
target
directory
,
but
this
is
not
recommended
,
and
the
...
...
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