create core package
This commit is contained in:
@@ -0,0 +1 @@
|
||||
PYTHONSTARTUP="/etc/pythonstart"
|
||||
@@ -0,0 +1,11 @@
|
||||
--- Lib/site.py.orig 2014-05-31 21:58:39.000000000 +0300
|
||||
+++ Lib/site.py 2014-06-03 01:06:08.958350806 +0300
|
||||
@@ -292,6 +292,8 @@
|
||||
"python" + sys.version[:3],
|
||||
"site-packages"))
|
||||
sitepackages.append(os.path.join(prefix, "lib", "site-python"))
|
||||
+ sitepackages.insert(0, os.path.join(prefix, "lib", "pisilinux"))
|
||||
+ sitepackages.insert(1, os.path.join(prefix, "lib", "pardus"))
|
||||
else:
|
||||
sitepackages.append(prefix)
|
||||
sitepackages.append(os.path.join(prefix, "lib", "site-packages"))
|
||||
@@ -0,0 +1,12 @@
|
||||
--- Lib/site.py 2005-10-17 15:38:18.000000000 +0300
|
||||
+++ Lib/site.py 2005-10-17 15:41:02.000000000 +0300
|
||||
@@ -349,7 +349,7 @@
|
||||
"""Set the string encoding used by the Unicode implementation. The
|
||||
default is 'ascii', but if you're willing to experiment, you can
|
||||
change this."""
|
||||
- encoding = "ascii" # Default value set by _PyUnicode_Init()
|
||||
+ encoding = "utf-8" # Default value set by _PyUnicode_Init()
|
||||
if 0:
|
||||
# Enable to support locale aware default string encodings.
|
||||
import locale
|
||||
Yalnızca Python-2.4.2/Lib'da: site.py~
|
||||
@@ -0,0 +1,11 @@
|
||||
--- Python-2.5/Lib/distutils/command/install.py.egginfo 2006-12-06 17:12:57.000000000 -0500
|
||||
+++ Python-2.5/Lib/distutils/command/install.py 2006-12-06 17:13:10.000000000 -0500
|
||||
@@ -601,7 +601,7 @@
|
||||
('install_headers', has_headers),
|
||||
('install_scripts', has_scripts),
|
||||
('install_data', has_data),
|
||||
- ('install_egg_info', lambda self:True),
|
||||
+ ('install_egg_info', lambda self:False),
|
||||
]
|
||||
|
||||
# class install
|
||||
@@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Exec=idle
|
||||
Icon=idle
|
||||
Name=IDLE Integrated Development Environment
|
||||
Name[tr]=IDLE Tümleşik Geliştirme Ortamı
|
||||
StartupNotify=false
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Application;Development;
|
||||
MimeType=application/x-python;
|
||||
@@ -0,0 +1,13 @@
|
||||
--- setup.py~ 2013-08-31 18:39:47.372964836 +0300
|
||||
+++ setup.py 2013-08-31 18:39:57.938964450 +0300
|
||||
@@ -437,8 +437,8 @@
|
||||
|
||||
def detect_modules(self):
|
||||
# Ensure that /usr/local is always used
|
||||
- add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
|
||||
- add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
|
||||
+# add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
|
||||
+# add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
|
||||
self.add_gcc_paths()
|
||||
self.add_multiarch_paths()
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
Index: Lib/platform.py
|
||||
===================================================================
|
||||
--- Lib/platform.py (revision 86735)
|
||||
+++ Lib/platform.py (working copy)
|
||||
@@ -259,7 +259,7 @@
|
||||
_supported_dists = (
|
||||
'SuSE', 'debian', 'fedora', 'redhat', 'centos',
|
||||
'mandrake', 'mandriva', 'rocks', 'slackware', 'yellowdog', 'gentoo',
|
||||
- 'UnitedLinux', 'turbolinux')
|
||||
+ 'UnitedLinux', 'turbolinux', 'pisilinux')
|
||||
|
||||
def _parse_release_file(firstline):
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
@@ -0,0 +1,29 @@
|
||||
# startup script for python to enable saving of interpreter history and
|
||||
# enabling name completion
|
||||
|
||||
# import needed modules
|
||||
import atexit
|
||||
import os
|
||||
import readline
|
||||
import rlcompleter
|
||||
|
||||
# where is history saved
|
||||
historyPath = os.path.expanduser("~/.pyhistory")
|
||||
|
||||
# handler for saving history
|
||||
def save_history(historyPath=historyPath):
|
||||
import readline
|
||||
readline.write_history_file(historyPath)
|
||||
|
||||
# read history, if it exists
|
||||
if os.path.exists(historyPath):
|
||||
readline.read_history_file(historyPath)
|
||||
|
||||
# register saving handler
|
||||
atexit.register(save_history)
|
||||
|
||||
# enable completion
|
||||
readline.parse_and_bind('tab: complete')
|
||||
|
||||
# cleanup
|
||||
del os, atexit, readline, rlcompleter, save_history, historyPath
|
||||
@@ -0,0 +1,24 @@
|
||||
diff -Nur Python-2.5.2-old/Lib/email/__init__.py Python-2.5.2/Lib/email/__init__.py
|
||||
--- Python-2.5.2-old/Lib/email/__init__.py 2008-07-02 18:58:15.000000000 +0300
|
||||
+++ Python-2.5.2/Lib/email/__init__.py 2008-07-02 18:59:28.000000000 +0300
|
||||
@@ -109,15 +109,18 @@
|
||||
'Text',
|
||||
]
|
||||
|
||||
+import string
|
||||
+lower_map = string.maketrans(string.ascii_uppercase, string.ascii_lowercase)
|
||||
+
|
||||
for _name in _LOWERNAMES:
|
||||
- importer = LazyImporter(_name.lower())
|
||||
+ importer = LazyImporter(_name.translate(lower_map))
|
||||
sys.modules['email.' + _name] = importer
|
||||
setattr(sys.modules['email'], _name, importer)
|
||||
|
||||
|
||||
import email.mime
|
||||
for _name in _MIMENAMES:
|
||||
- importer = LazyImporter('mime.' + _name.lower())
|
||||
+ importer = LazyImporter('mime.' + _name.translate(lower_map))
|
||||
sys.modules['email.MIME' + _name] = importer
|
||||
setattr(sys.modules['email'], 'MIME' + _name, importer)
|
||||
setattr(sys.modules['email.mime'], _name, importer)
|
||||
Reference in New Issue
Block a user