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
8f692275
Kaydet (Commit)
8f692275
authored
May 19, 2010
tarafından
Tarek Ziadé
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#8759: Fixed user paths in sysconfig for posix and os2 schemes
üst
4a769059
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
9 deletions
+20
-9
sysconfig.py
Lib/sysconfig.py
+8
-8
test_sysconfig.py
Lib/test/test_sysconfig.py
+10
-1
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/sysconfig.py
Dosyayı görüntüle @
8f692275
...
@@ -47,10 +47,10 @@ _INSTALL_SCHEMES = {
...
@@ -47,10 +47,10 @@ _INSTALL_SCHEMES = {
'data'
:
'{base}'
,
'data'
:
'{base}'
,
},
},
'os2_home'
:
{
'os2_home'
:
{
'stdlib'
:
'{userbase}/lib/python
/
{py_version_short}'
,
'stdlib'
:
'{userbase}/lib/python{py_version_short}'
,
'platstdlib'
:
'{userbase}/lib/python
/
{py_version_short}'
,
'platstdlib'
:
'{userbase}/lib/python{py_version_short}'
,
'purelib'
:
'{userbase}/lib/python
/
{py_version_short}/site-packages'
,
'purelib'
:
'{userbase}/lib/python{py_version_short}/site-packages'
,
'platlib'
:
'{userbase}/lib/python
/
{py_version_short}/site-packages'
,
'platlib'
:
'{userbase}/lib/python{py_version_short}/site-packages'
,
'include'
:
'{userbase}/include/python{py_version_short}'
,
'include'
:
'{userbase}/include/python{py_version_short}'
,
'scripts'
:
'{userbase}/bin'
,
'scripts'
:
'{userbase}/bin'
,
'data'
:
'{userbase}'
,
'data'
:
'{userbase}'
,
...
@@ -65,10 +65,10 @@ _INSTALL_SCHEMES = {
...
@@ -65,10 +65,10 @@ _INSTALL_SCHEMES = {
'data'
:
'{userbase}'
,
'data'
:
'{userbase}'
,
},
},
'posix_user'
:
{
'posix_user'
:
{
'stdlib'
:
'{userbase}/lib/python
/
{py_version_short}'
,
'stdlib'
:
'{userbase}/lib/python{py_version_short}'
,
'platstdlib'
:
'{userbase}/lib/python
/
{py_version_short}'
,
'platstdlib'
:
'{userbase}/lib/python{py_version_short}'
,
'purelib'
:
'{userbase}/lib/python
/
{py_version_short}/site-packages'
,
'purelib'
:
'{userbase}/lib/python{py_version_short}/site-packages'
,
'platlib'
:
'{userbase}/lib/python
/
{py_version_short}/site-packages'
,
'platlib'
:
'{userbase}/lib/python{py_version_short}/site-packages'
,
'include'
:
'{userbase}/include/python{py_version_short}'
,
'include'
:
'{userbase}/include/python{py_version_short}'
,
'scripts'
:
'{userbase}/bin'
,
'scripts'
:
'{userbase}/bin'
,
'data'
:
'{userbase}'
,
'data'
:
'{userbase}'
,
...
...
Lib/test/test_sysconfig.py
Dosyayı görüntüle @
8f692275
...
@@ -17,7 +17,7 @@ import sysconfig
...
@@ -17,7 +17,7 @@ import sysconfig
from
sysconfig
import
(
get_paths
,
get_platform
,
get_config_vars
,
from
sysconfig
import
(
get_paths
,
get_platform
,
get_config_vars
,
get_path
,
get_path_names
,
_INSTALL_SCHEMES
,
get_path
,
get_path_names
,
_INSTALL_SCHEMES
,
_get_default_scheme
,
_expand_vars
,
_get_default_scheme
,
_expand_vars
,
get_scheme_names
)
get_scheme_names
,
get_config_var
)
class
TestSysConfig
(
unittest
.
TestCase
):
class
TestSysConfig
(
unittest
.
TestCase
):
...
@@ -255,6 +255,15 @@ class TestSysConfig(unittest.TestCase):
...
@@ -255,6 +255,15 @@ class TestSysConfig(unittest.TestCase):
finally
:
finally
:
unlink
(
link
)
unlink
(
link
)
def
test_user_similar
(
self
):
# Issue 8759 : make sure the posix scheme for the users
# is similar to the global posix_prefix one
base
=
get_config_var
(
'base'
)
user
=
get_config_var
(
'userbase'
)
for
name
in
(
'stdlib'
,
'platstdlib'
,
'purelib'
,
'platlib'
):
global_path
=
get_path
(
name
,
'posix_prefix'
)
user_path
=
get_path
(
name
,
'posix_user'
)
self
.
assertEquals
(
user_path
,
global_path
.
replace
(
base
,
user
))
def
test_main
():
def
test_main
():
run_unittest
(
TestSysConfig
)
run_unittest
(
TestSysConfig
)
...
...
Misc/NEWS
Dosyayı görüntüle @
8f692275
...
@@ -18,6 +18,8 @@ Core and Builtins
...
@@ -18,6 +18,8 @@ Core and Builtins
Library
Library
-------
-------
- Issue #8759: Fixed user paths in sysconfig for posix and os2 schemes.
- Issue #1285086: Speed up urllib.quote and urllib.unquote for simple cases.
- Issue #1285086: Speed up urllib.quote and urllib.unquote for simple cases.
- Issue #8688: Distutils now recalculates MANIFEST everytime.
- Issue #8688: Distutils now recalculates MANIFEST everytime.
...
...
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