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
5c071c1f
Kaydet (Commit)
5c071c1f
authored
Eyl 01, 2016
tarafından
Jason R. Coombs
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #27919: Deprecate extra_path option in distutils.
üst
2f9cc7ab
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
3.6.rst
Doc/whatsnew/3.6.rst
+6
-0
install.py
Lib/distutils/command/install.py
+6
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Doc/whatsnew/3.6.rst
Dosyayı görüntüle @
5c071c1f
...
...
@@ -782,6 +782,12 @@ Deprecated features
now deprecated.
(Contributed by Serhiy Storchaka in :issue:`25791` and :issue:`26754`.)
* The undocumented ``extra_path`` argument to a distutils Distribution
is now considered
deprecated, will raise a warning during install if set. Support for this
parameter will be dropped in a future Python release and likely earlier
through third party tools. See :issue:`27919` for details.
Deprecated Python behavior
--------------------------
...
...
Lib/distutils/command/install.py
Dosyayı görüntüle @
5c071c1f
...
...
@@ -175,6 +175,7 @@ class install(Command):
self
.
compile
=
None
self
.
optimize
=
None
# Deprecated
# These two are for putting non-packagized distributions into their
# own directory and creating a .pth file if it makes sense.
# 'extra_path' comes from the setup file; 'install_path_file' can
...
...
@@ -344,6 +345,7 @@ class install(Command):
'scripts'
,
'data'
,
'headers'
,
'userbase'
,
'usersite'
)
# Deprecated
# Well, we're not actually fully completely finalized yet: we still
# have to deal with 'extra_path', which is the hack for allowing
# non-packagized module distributions (hello, Numerical Python!) to
...
...
@@ -490,6 +492,10 @@ class install(Command):
self
.
extra_path
=
self
.
distribution
.
extra_path
if
self
.
extra_path
is
not
None
:
log
.
warn
(
"Distribution option extra_path is deprecated. "
"See issue27919 for details."
)
if
isinstance
(
self
.
extra_path
,
str
):
self
.
extra_path
=
self
.
extra_path
.
split
(
','
)
...
...
Misc/NEWS
Dosyayı görüntüle @
5c071c1f
...
...
@@ -60,6 +60,9 @@ Core and Builtins
Library
-------
- Issue #27919: Deprecated ``extra_path`` distribution option in distutils
packaging.
- Issue #23229: Add new ``cmath`` constants: ``cmath.inf`` and ``cmath.nan`` to
match ``math.inf`` and ``math.nan``, and also ``cmath.infj`` and
``cmath.nanj`` to match the format used by complex repr.
...
...
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