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
4382ad6e
Kaydet (Commit)
4382ad6e
authored
Nis 15, 2014
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Closes #21197: Add lib64 -> lib symlink in venvs on 64-bit non-OS X POSIX.
üst
5f0443fb
809f90f3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
2 deletions
+22
-2
test_venv.py
Lib/test/test_venv.py
+9
-0
__init__.py
Lib/venv/__init__.py
+11
-2
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/test/test_venv.py
Dosyayı görüntüle @
4382ad6e
...
@@ -9,6 +9,7 @@ import ensurepip
...
@@ -9,6 +9,7 @@ import ensurepip
import
os
import
os
import
os.path
import
os.path
import
shutil
import
shutil
import
struct
import
subprocess
import
subprocess
import
sys
import
sys
import
tempfile
import
tempfile
...
@@ -87,6 +88,14 @@ class BasicTest(BaseTest):
...
@@ -87,6 +88,14 @@ class BasicTest(BaseTest):
self
.
isdir
(
self
.
bindir
)
self
.
isdir
(
self
.
bindir
)
self
.
isdir
(
self
.
include
)
self
.
isdir
(
self
.
include
)
self
.
isdir
(
*
self
.
lib
)
self
.
isdir
(
*
self
.
lib
)
# Issue 21197
p
=
self
.
get_env_file
(
'lib64'
)
conditions
=
((
struct
.
calcsize
(
'P'
)
==
8
)
and
(
os
.
name
==
'posix'
)
and
(
sys
.
platform
!=
'darwin'
))
if
conditions
:
self
.
assertTrue
(
os
.
path
.
islink
(
p
))
else
:
self
.
assertFalse
(
os
.
path
.
exists
(
p
))
data
=
self
.
get_text_file_contents
(
'pyvenv.cfg'
)
data
=
self
.
get_text_file_contents
(
'pyvenv.cfg'
)
if
sys
.
platform
==
'darwin'
and
(
'__PYVENV_LAUNCHER__'
if
sys
.
platform
==
'darwin'
and
(
'__PYVENV_LAUNCHER__'
in
os
.
environ
):
in
os
.
environ
):
...
...
Lib/venv/__init__.py
Dosyayı görüntüle @
4382ad6e
"""
"""
Virtual environment (venv) package for Python. Based on PEP 405.
Virtual environment (venv) package for Python. Based on PEP 405.
Copyright (C) 2011-201
2
Vinay Sajip.
Copyright (C) 2011-201
4
Vinay Sajip.
Licensed to the PSF under a contributor agreement.
Licensed to the PSF under a contributor agreement.
usage: python -m venv [-h] [--system-site-packages] [--symlinks] [--clear]
usage: python -m venv [-h] [--system-site-packages] [--symlinks] [--clear]
...
@@ -30,6 +30,7 @@ optional arguments:
...
@@ -30,6 +30,7 @@ optional arguments:
import
logging
import
logging
import
os
import
os
import
shutil
import
shutil
import
struct
import
subprocess
import
subprocess
import
sys
import
sys
import
types
import
types
...
@@ -132,10 +133,18 @@ class EnvBuilder:
...
@@ -132,10 +133,18 @@ class EnvBuilder:
else
:
else
:
binname
=
'bin'
binname
=
'bin'
incpath
=
'include'
incpath
=
'include'
libpath
=
os
.
path
.
join
(
env_dir
,
'lib'
,
'python
%
d.
%
d'
%
sys
.
version_info
[:
2
],
'site-packages'
)
libpath
=
os
.
path
.
join
(
env_dir
,
'lib'
,
'python
%
d.
%
d'
%
sys
.
version_info
[:
2
],
'site-packages'
)
context
.
inc_path
=
path
=
os
.
path
.
join
(
env_dir
,
incpath
)
context
.
inc_path
=
path
=
os
.
path
.
join
(
env_dir
,
incpath
)
create_if_needed
(
path
)
create_if_needed
(
path
)
create_if_needed
(
libpath
)
create_if_needed
(
libpath
)
# Issue 21197: create lib64 as a symlink to lib on 64-bit non-OS X POSIX
if
((
struct
.
calcsize
(
'P'
)
==
8
)
and
(
os
.
name
==
'posix'
)
and
(
sys
.
platform
!=
'darwin'
)):
p
=
os
.
path
.
join
(
env_dir
,
'lib'
)
link_path
=
os
.
path
.
join
(
env_dir
,
'lib64'
)
os
.
symlink
(
p
,
link_path
)
context
.
bin_path
=
binpath
=
os
.
path
.
join
(
env_dir
,
binname
)
context
.
bin_path
=
binpath
=
os
.
path
.
join
(
env_dir
,
binname
)
context
.
bin_name
=
binname
context
.
bin_name
=
binname
context
.
env_exe
=
os
.
path
.
join
(
binpath
,
exename
)
context
.
env_exe
=
os
.
path
.
join
(
binpath
,
exename
)
...
...
Misc/NEWS
Dosyayı görüntüle @
4382ad6e
...
@@ -46,6 +46,8 @@ Core and Builtins
...
@@ -46,6 +46,8 @@ Core and Builtins
Library
Library
-------
-------
- Issue #21197: Add lib64 -> lib symlink in venvs on 64-bit non-OS X POSIX.
- Issue #17498: Some SMTP servers disconnect after certain errors, violating
- Issue #17498: Some SMTP servers disconnect after certain errors, violating
strict RFC conformance. Instead of losing the error code when we issue the
strict RFC conformance. Instead of losing the error code when we issue the
subsequent RSET, smtplib now returns the error code and defers raising the
subsequent RSET, smtplib now returns the error code and defers raising 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