summaryrefslogtreecommitdiff
path: root/lang/python
AgeCommit message (Collapse)AuthorFilesLines
2009-11-03As the default PYTHON_VERSIONS_ACCEPTED matches with the supported listjoerg1-3/+1
of py-setuptools, drop the override here.
2009-11-03Update for Python26-2.6.4wiz1-3/+3
2009-10-21Update for python26-2.6.3.wiz1-3/+3
2009-09-25Simplify pattern to detect Mac OS X Intel 64-Bit.tron1-2/+2
2009-09-25Re-do last change to avoid problems on Mac OS X older than Snow Leopard.tron1-2/+2
2009-09-22Use Python 2.6 by default under Mac OS X if we compile for the 64-Bit ABI.tron1-1/+5
Not even Apple were able to build a 64-Bit version of Python 2.5.
2009-09-07Retire Python 2.3 support.joerg2-24/+7
2009-07-08Provide PY_COMPILE_ALL and PY_COMPILE_O_ALL to compile all Pythonjoerg1-1/+5
sources in a directory (tree) in pversion.mk. Adjust the various places that called it locally.
2009-07-02Restore PRINT_PLIST_AWK logic in so far they don't create @dirrmjoerg1-1/+11
entries. I pruned them too aggressively as the @dirrm matching here was conditional. OK wiz
2009-06-14Remove @dirrm related logic.joerg1-15/+1
2009-05-26Allow overriding build target for do-build, using PYSETUPBUILDTARGET.wiz1-2/+3
2009-04-19Make BUILDLINK_API_DEPENDS.python26 agree with the package.snj1-2/+2
2009-04-19Add py26 to default list of PYTHON_VERSIONS_ACCEPTED and setsnj1-2/+3
BUILDLINK_API_DEPENDS.python26.
2009-04-19Add untested entries for python26.wiz2-10/+16
2009-04-19Add untested entry for python26.wiz1-2/+12
2009-04-11Update python25 to 2.5.4. Spammy changes:snj1-3/+3
What's New in Python 2.5.4? =========================== *Release date: 23-Dec-2008* Core and builtins ----------------- - Revert patch for #1706039, as it can crash the interpreter. - Added test case to ensure attempts to read from a file opened for writing fail. What's New in Python 2.5.3? =========================== *Release date: 19-Dec-2008* Build ----- - In the OSX installer, update SQLite to 3.6.7, and change bsddb URL. Build against system Tcl framework. What's New in Python 2.5.3c1? ============================= *Release date: 13-Dec-2008* Core and builtins ----------------- - Issue #1706039: Support continued reading from a file even after EOF was hit. - Issue #1683: prevent forking from interfering in threading storage. - Issue #4597: Fixed several opcodes that weren't always propagating exceptions. - Issue #4589: Propagated an exception thrown by a context manager's __exit__ method's result while it's being converted to bool. - Issue #4317: Fixed a crash in the imageop.rgb2rgb8() function. - Issue #4230: If ``__getattr__`` is a descriptor, it now functions correctly. - Issue #4048: The parser module now correctly validates relative imports. - Issue #4176: Fixed a crash when pickling an object which ``__reduce__`` method does not return iterators for the 4th and 5th items. - Issue #3967: Fixed a crash in the count() and find() methods of string-like objects, when the "start" parameter is a huge value. - Issue #3936: The parser warnings for using "as" and "with" as variable names didn't fire after import statements. - Issue #3751: str.rpartition would perform a left-partition when called with a unicode argument. - Issue #3537: Fix an assertion failure when an empty but presized dict object was stored in the freelist. - Apply security patches from Apple. - Issue #2620: Overflow checking when allocating or reallocating memory was not always being done properly in some python types and extension modules. PyMem_MALLOC, PyMem_REALLOC, PyMem_NEW and PyMem_RESIZE have all been updated to perform better checks and places in the code that would previously leak memory on the error path when such an allocation failed have been fixed. - Issue #2242: Fix a crash when decoding invalid utf-7 input on certain Windows / Visual Studio versions. - Issue #3360: Fix incorrect parsing of '020000000000.0', which produced a ValueError instead of giving the correct float. - Issue #3242: Fix a crash inside the print statement, if sys.stdout is set to a custom object whose write() method happens to install another file in sys.stdout. - Issue #3088: Corrected a race condition in classes derived from threading.local: the first member set by a thread could be saved in another thread's dictionary. - Issue #3100: Corrected a crash on deallocation of a subclassed weakref which holds the last (strong) reference to its referent. - Issue #1686386: Tuple's tp_repr did not take into account the possibility of having a self-referential tuple, which is possible from C code. Nor did object's tp_str consider that a type's tp_str could do something that could lead to an inifinite recursion. Py_ReprEnter() and Py_EnterRecursiveCall(), respectively, fixed the issues. (Backport of r58288 from trunk.) - Patch #1442: properly report exceptions when the PYTHONSTARTUP file cannot be executed. - The compilation of a class nested in another class used to leak one reference on the outer class name. - Issue #1477: With narrow Unicode builds, the unicode escape sequence \Uxxxxxxxx did not accept values outside the Basic Multilingual Plane. This affected raw unicode literals and the 'raw-unicode-escape' codec. Now UTF-16 surrogates are generated in this case, like normal unicode literals and the 'unicode-escape' codec. - Issue #2321: use pymalloc for unicode object string data to reduce memory usage in some circumstances. - Issue #2238: Some syntax errors in *args and **kwargs expressions could give bogus error messages. - Issue #2587: In the C API, PyString_FromStringAndSize() takes a signed size parameter but was not verifying that it was greater than zero. Values less than zero will now raise a SystemError and return NULL to indicate a bug in the calling C code. - Issue #2588, #2589: Fix potential integer underflow and overflow conditions in the PyOS_vsnprintf C API function. - Issue #1204: The configure script now tests for additional libraries that may be required when linking against readline. This fixes issues with x86_64 builds on some platforms (a few Linux flavors and OpenBSD). - Issue #3678: Correctly pass LDFLAGS and LDLAST to the linker on shared library targets in the Makefile. Library ------- - Issue #3767: Convert Tk object to string in tkColorChooser. - Issue #4342: Always convert Text.index result to string. - Issue 3248: Allow placing ScrolledText in a PanedWindow. - Issue #4084: Fix max, min, max_mag and min_mag Decimal methods to give correct results in the case where one argument is a quiet NaN and the other is a finite number that requires rounding. - Issue #1776581 and #4302. Minor corrections to smtplib. - Issue #3774: Fixed an error when create a Tkinter menu item without command and then remove it. - Assigning methods to ctypes.Structure and ctypes.Union subclasses after creation of the class does now work correctly. See Issue #1700288. - Issue #3895: _lsprof could be crashed with an external timer that did not return a float when a Profiler object is garbage collected. - Issues #3968 and #3969: two minor turtle problems. - Issue #3547: Fixed ctypes structures bitfields of varying integer sizes. - Issue #3762: platform.architecture() fails if python is lanched via its symbolic link. - Issue #3554: ctypes.string_at and ctypes.wstring_at did call Python api functions without holding the GIL, which could lead to a fatal error when they failed. - Issue #2234: distutils failed for some versions of the cygwin compiler. The version reported by these tools does not necessarily follow the python version numbering scheme, so the module is less strict when parsing it. - Issue #2222: Fixed reference leak when occured os.rename() fails unicode conversion on 2nd parameter. (windows only) - Issue #3134: shutil referenced undefined WindowsError symbol. - Issue #1342811: Fix leak in Tkinter.Menu.delete. Commands associated to menu entries were not deleted. - Issue #799428: Fix Tkinter.Misc._nametowidget to unwrap Tcl command objects. - Issue #3339: dummy_thread.acquire() could return None which is not a valid return value. - Issue #3116 and #1792: Fix quadratic behavior in marshal.dumps(). - Issue #2682: ctypes callback functions no longer contain a cyclic reference to themselves. - Issue #2670: Fix a failure in urllib2.build_opener(), when passed two handlers that derive the same default base class. - Issue #2495: tokenize.untokenize now inserts a space between two consecutive string literals; previously, ["" ""] was rendered as [""""], which is incorrect python code. - Issue #2482: Make sure that the coefficient of a Decimal is always stored as a str instance, not as a unicode instance. This ensures that str(Decimal) is always an instance of str. This fixes a regression from Python 2.5.1 to Python 2.5.2. - Issue #2478: fix failure of decimal.Decimal(0).sqrt() - Issue #2432: give DictReader the dialect and line_num attributes advertised in the docs. - Issue #1747858: Fix chown to work with large uid's and gid's on 64-bit platforms. - Bug #2220: handle rlcompleter attribute match failure more gracefully. - Bug #1725737: In distutil's sdist, exclude RCS, CVS etc. also in the root directory, and also exclude .hg, .git, .bzr, and _darcs. - Bug #1389051: imaplib causes excessive memory fragmentation when reading large messages. - Bug #1389051, 1092502: fix excessively large memory allocations when calling .read() on a socket object wrapped with makefile(). - Bug #1433694: minidom's .normalize() failed to set .nextSibling for last child element. - Issue #2791: subprocess.Popen.communicate explicitly closes its stdout and stderr fds rather than leaving them open until the instance is destroyed. - Issue #2632: Prevent socket.read(bignumber) from over allocating memory in the common case when the data is returned from the underlying socket in increments much smaller than bignumber. - Issue #1857: subprocess.Popen.poll gained an additional _deadstate keyword argument in python 2.5, this broke code that subclassed Popen to include its own poll method. Fixed my moving _deadstate to an _internal_poll method. - Issue #2113: Fix error in subprocess.Popen if the select system call is interrupted by a signal. - Issue #874900: after an os.fork() call the threading module state is cleaned up in the child process to prevent deadlock and report proper thread counts if the new process uses the threading module. - Issue #3309: Fix bz2.BZFile iterator to release its internal lock properly when raising an exception due to the bz2file being closed. Prevents a deadlock. Extension Modules ----------------- - Issue #1040026: Fix os.times result on systems where HZ is incorrect. - Issue #4228: Pack negative values the same way as 2.4 in struct's L format. - Security Issue #2: imageop did not validate arguments correctly and could segfault as a result. - Issue 3886: [CVE-2008-2316] Possible integer overflow in the _hashopenssl module was closed. - Issue 1179: [CVE-2007-4965] Integer overflow in imageop module. Also fixes rgbimg module. - Issue #3205: When iterating over a BZ2File fails allocating memory, raise a MemoryError rather than silently stop the iteration. - Patch #2111: Avoid mmap segfault when modifying a PROT_READ block. - zlib.decompressobj().flush(value) no longer crashes the interpreter when passed a value less than or equal to zero. - issue2858: Fix potential memory corruption when bsddb.db.DBEnv.lock_get and other bsddb.db object constructors raised an exception. - Issue #3120: On 64-bit Windows the subprocess module was truncating handles. - Issue #1471: Arguments to fcntl.ioctl are no longer broken on 64-bit OpenBSD and similar platforms due to sign extension. - Issue #3312: Fix two crashes in sqlite3. Tests ----- - Issue #3863: Disabled a unit test of fork being called from a thread when running on platforms known to exhibit OS bugs when attempting that. - Issue #3261: test_cookielib had an improper file encoding specified. - Patch #2232: os.tmpfile might fail on Windows if the user has no permission to create files in the root directory. Documentation ------------- Build ----- - Issue #4368: Don't define _XOPEN_SOURCE on FreeBSD 4.*.
2009-03-21Remove traces of python21.snj1-4/+4
2009-03-08Move the PYTHON_VERSION_REQD logic from extension.mk to pyversion.mk.joerg2-12/+12
It shouldn't hurt and allows including application.mk and extension.mk in any order.
2009-03-05Remove PYBINMODULE. All it did was mark some packages as not availablejoerg1-7/+1
on some platforms that lacked shared library support in the past. The list hasn't been maintained at all and the gain is very limited, so just get rid of it.
2009-02-19For bmake, empty() take a variable, and M modifier only accept the standardobache1-3/+5
shell wildcard characters.
2009-02-18Update comments, now default python version is 25.obache1-2/+2
2009-02-17Use bsd.fast.prefs.mk.joerg1-2/+2
2009-02-17Require setuptools 0.6c9 to get consistent native_libs.txt behavior.joerg1-3/+3
No recursive bump as packages either have been broken or are working correctly with older versions. While here, fix the Python version comment.
2009-02-09Switch to Python 2.5 as default. Bump revision of all packages that havejoerg1-2/+2
changed runtime dependencies now.
2009-02-09Remove Python 2.1 support.joerg2-23/+2
2009-01-23Remove comment that doesn't reflect the consensus on how to mark supportjoerg1-5/+2
Python versions.
2008-12-23Only derive PYTHON_VERSION_REQD from PKGNAME_REQD or PKGNAME_OLD if theyabs1-3/+3
match py([0-9][0-9])-.*. Fixes breakage when building gnome which then tries to build hamster-applet and chokes due to PYPKGPREFIX ending up undefined.
2008-12-02Fix for python23 update to 2.3.7.wiz1-4/+4
Noted by Robert Elz in PR 40082.
2008-11-29Remove one last python15 bit.snj1-2/+2
2008-11-29Oops, forgot to commit these. Remove python15 support.snj2-26/+6
2008-10-06Add support to derive the Python version from PKGNAME_OLD.joerg1-1/+3
2008-09-12Default EGG_NAME to ${DISTNAME} in egg.mk and drop EGG_NAME from packages thatepg1-1/+3
set it to ${DISTNAME}.
2008-09-10Add PRINT_PLIST_AWK code.epg1-1/+5
2008-06-30Move PY_NO_EGG?= check outside of defined(PYDISTUTILSPKG) to fixabs1-7/+7
PLIST of ap22-py25-python and similar packages (removes additional egg-info file) From tnn@. Passed via packages@ without objection
2008-04-26Python 2.5 should support eggs as well.joerg1-2/+2
2008-04-25Remove python 2.1 from the default set of acceptable python packagestnn1-3/+3
so that packages that require it must specify so explicitly.
2008-04-25De-orbit support for python 2.0 and python 2.2 under the "three majortnn2-43/+7
releases is enough" rule of thumb. (python 2.3 was released 5 years ago.) Keep python 1.5 and 2.1 though, because there are a handful of packages that still need them.
2008-04-24adjust directory for python25tnn1-7/+3
2008-04-24prepare for arrival of Python 2.5tnn2-5/+21
2008-04-18As all Python packages are required to include lang/python/pyversion.mkjoerg1-6/+8
anyway, simplify logic a bit: Add Python 2.5 to the default list, but also mark it as incompatible if wip/python25 is not present. Move the Darwin handling after setting a default value. Provide a new variable _PYTHON_VERSIONS_ACCEPTED that is filtered by PYTHON_VERSIONS_INCOMPATIBLE. This helps to avoid providing broken dependencies when a version is not supported as PYPKGPREFIX wouldn't be set in that case.
2008-04-11only set 25 in PYTHON_VERSIONS_ACCEPTED if ../../wip/python25/Makefile foundabs1-1/+5
2008-04-11Add 25 to PYTHON_VERSIONS_ACCEPTED, so PYTHON_VERSION_DEFAULT=25 works in ↵abs1-2/+2
mk.conf
2008-04-11update for 2.4.5drochner1-3/+3
2008-03-15For Python 2.5, check that the wip directory actually exists.joerg1-2/+2
2008-02-20Removed colons from variable names so they are accessible to "bmakerillig1-8/+15
help".
2008-02-04Revert last. Python 2.5 is not in the main tree and creating noise forjoerg1-2/+2
bulk builds is inacceptable.
2008-02-01python 2.5 should be supported because it's the current production release,xtraeme1-6/+13
make it understand wip/python25 and PYTHON_VERSION_DEFAULT=25. Change the wip path iff python25 is imported.
2008-01-31Improved the wording for the cases where PYTHON_VERSIONS_INCOMPATIBLErillig1-4/+5
should be used instead of PYTHON_VERSIONS_ACCEPTED.
2008-01-31Explained the comment for PYTHON_VERSIONS_ACCEPTED and documented whyrillig1-7/+8
PYTHON_VERSIONS_INCOMPATIBLE should be used instead.
2007-10-31With the advent of Apache module prefixes the Python package prefixjoerg1-2/+2
might not the first component of PKGNAME_REQD. Change this to match either py[0-9][0-9] or the same string after a hyphen.