Commit graph

331 commits

Author SHA1 Message Date
joerg
f26125ea3f Some packages play with PYPKGPREFIX, even if no valid Python version can
be found, so provide it.
2012-01-28 12:14:08 +00:00
gdt
c66b707ce5 Expand comments. (No code change.) 2011-12-16 12:57:17 +00:00
gdt
e942800ae6 Clarify when distutils.mk should be used. 2011-12-16 12:41:05 +00:00
joerg
9a0666357e Tag the 28 locations that result in a Python 3.1 package as supporting so.
Remove it from the default list for the rest.
2011-12-03 00:02:14 +00:00
obache
69e672fb28 Add make fragment for easy to use python as tool. 2011-10-14 08:55:54 +00:00
joerg
125959dede Make sure that PYDISTUTILS_CREATES_EGGFILES is defined in all branches. 2011-07-07 18:46:32 +00:00
reed
6da084e457 Change the PYDEPENDENCY for python31 to python31.
What uses PYDEPENDENCY?
2011-06-21 14:11:24 +00:00
reed
3a675e1e5d Add support for python31.
(I have been using this for around 18 months on several platforms;
adjusted once after python27 was added.)
2011-06-17 01:01:04 +00:00
obache
63c67c856b also put PYLIB in PLIST_SUBST, a part of PR#44826. 2011-05-04 10:01:02 +00:00
obache
cf3e73988a No need to add 27 for PYTHON_VERSIONS_ACCEPTED over again. 2011-03-26 07:53:30 +00:00
wiz
a2163548a9 Add MULTI variable, and add it to BUILD_DEFS, to more easily find
variable settings affecting binary packages.

From Aleksey Cheusov in PR 44695.
2011-03-12 14:07:13 +00:00
wiz
f09b8dbca6 Let's assume for now that everything that worked with python-2.6 also
works with python-2.7.
2011-02-25 09:47:18 +00:00
obache
ddaad9060f Use function-style `print', for python3. 2011-02-22 11:12:51 +00:00
obache
0aa7dc141b fix for python27. 2011-02-22 09:12:37 +00:00
obache
1238a8a5f4 Allow python27 and acceptable by default (default python is still 2.6). 2011-02-22 09:01:28 +00:00
obache
829d0c91d2 change to match de-expanded ${PYSITELIB} in PRINT_PLIST_AWK. 2011-02-13 08:09:43 +00:00
obache
c3800b46ca remove "next;" in PRINT_PLIST_AWK, it may prevent additional substitute,
like ${EGG_INFODIR}.
2011-02-13 08:07:39 +00:00
obache
5a5140be39 Share distfile related information for each python variants with
srcdist.mk to make update simplicity.
2010-09-17 07:11:41 +00:00
tron
6403d68a09 Update for Python 2.6.6. 2010-09-04 15:31:29 +00:00
gdt
19037fc39b Clarify when to use this fragment, and that it's ok to use it and
egg.mk in the same package.
2010-07-24 18:12:11 +00:00
gdt
5313c097fe Add support for packaging python "distributions" that use distutils.
Suppport conditional PLIST inclusion of the expected egg file, because
python2.4 distutils does not create them but later versions do.  (Note
that PRINT_PLIST_AWK production is not working, probably due to order
of substitution.)

Earlier patch reviewed by wiz@.
2010-07-24 12:32:22 +00:00
gdt
e5b32819c1 Explain that PY_NO_EGG probably exists because distutils in Python 2.4
and earlier did not create egg files.
2010-07-24 00:57:17 +00:00
gdt
f2722239f9 Explain what extension.mk is for, vs egg.mk, and clarify the notion of
egg info files in non-egg python distributions.

Add a comment that PY_NO_EGG appears wrong.  Obviously there is a
reason it was added, but we need to figure out why and if it's still
true.
2010-07-23 22:56:40 +00:00
gdt
3bf719f084 Clarify that this mk fragment is only for python distributions that
use setuptools.
2010-07-23 22:44:46 +00:00
wiz
d28684c16f Add optional user-setable PYSETUPARGS variable that is added to the build
and install command lines _before_ the target name.

Needed for non-target specific options, used e.g. by gaupol.
2010-07-21 11:29:10 +00:00
wiz
4a3cd89794 Update for python26-2.6.5. 2010-05-02 14:09:44 +00:00
gdt
9cd000ba73 Adjust to new version of Python 2.5 (pointed out by Dennis den Brok in
private mail).
2010-04-07 22:20:54 +00:00
drochner
d202e4278e allow to override cmake's Python search order, to enforce the version
selected by pkgsrc
this automatically affects pkgs which use FIND_PACKAGE(PythonInterp)
or FIND_PACKAGE(PythonLibs)
2010-02-12 13:45:54 +00:00
joerg
969606e64d Make Python 2.6 the default version. 2010-02-10 19:16:48 +00:00
joerg
f75822b4ca Add PYTHONCONFIG similar to PYTHONBIN. 2010-02-09 22:55:16 +00:00
joerg
f1fe4d103b As the default PYTHON_VERSIONS_ACCEPTED matches with the supported list
of py-setuptools, drop the override here.
2009-11-03 20:20:05 +00:00
wiz
e2ad9ef60b Update for Python26-2.6.4 2009-11-03 02:21:05 +00:00
wiz
13980b27a3 Update for python26-2.6.3. 2009-10-21 06:36:24 +00:00
tron
2fb6019e05 Simplify pattern to detect Mac OS X Intel 64-Bit. 2009-09-25 13:42:26 +00:00
tron
bc35dabdce Re-do last change to avoid problems on Mac OS X older than Snow Leopard. 2009-09-25 13:36:19 +00:00
tron
8a7c79ead2 Use Python 2.6 by default under Mac OS X if we compile for the 64-Bit ABI.
Not even Apple were able to build a 64-Bit version of Python 2.5.
2009-09-22 13:46:09 +00:00
joerg
5d74bfed39 Retire Python 2.3 support. 2009-09-07 18:21:43 +00:00
joerg
d4a50a2966 Provide PY_COMPILE_ALL and PY_COMPILE_O_ALL to compile all Python
sources in a directory (tree) in pversion.mk. Adjust the various places
that called it locally.
2009-07-08 13:55:58 +00:00
joerg
d83f0ef2ac Restore PRINT_PLIST_AWK logic in so far they don't create @dirrm
entries. I pruned them too aggressively as the @dirrm matching here was
conditional. OK wiz
2009-07-02 09:37:12 +00:00
joerg
76039544d1 Remove @dirrm related logic. 2009-06-14 22:57:58 +00:00
wiz
f4b19d7b46 Allow overriding build target for do-build, using PYSETUPBUILDTARGET. 2009-05-26 21:59:57 +00:00
snj
a852a3c317 Make BUILDLINK_API_DEPENDS.python26 agree with the package. 2009-04-19 15:14:19 +00:00
snj
73cbd311a0 Add py26 to default list of PYTHON_VERSIONS_ACCEPTED and set
BUILDLINK_API_DEPENDS.python26.
2009-04-19 15:09:51 +00:00
wiz
14dcbe6199 Add untested entries for python26. 2009-04-19 14:48:17 +00:00
wiz
9d99de2c87 Add untested entry for python26. 2009-04-19 14:46:21 +00:00
snj
927c2711ab Update python25 to 2.5.4. Spammy changes:
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-04-11 19:42:23 +00:00
snj
a36e9e49f7 Remove traces of python21. 2009-03-21 06:24:48 +00:00
joerg
3c95ad1d12 Move the PYTHON_VERSION_REQD logic from extension.mk to pyversion.mk.
It shouldn't hurt and allows including application.mk and extension.mk
in any order.
2009-03-08 17:05:10 +00:00
joerg
25a80fb4ab Remove PYBINMODULE. All it did was mark some packages as not available
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-03-05 18:51:26 +00:00
obache
c06768031a For bmake, empty() take a variable, and M modifier only accept the standard
shell wildcard characters.
2009-02-19 12:24:59 +00:00
obache
a3bd53bc5f Update comments, now default python version is 25. 2009-02-18 05:50:31 +00:00
joerg
7e73010726 Use bsd.fast.prefs.mk. 2009-02-17 17:32:38 +00:00
joerg
ec79ed822b Require setuptools 0.6c9 to get consistent native_libs.txt behavior.
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-17 15:32:22 +00:00
joerg
3c645bb7fc Switch to Python 2.5 as default. Bump revision of all packages that have
changed runtime dependencies now.
2009-02-09 22:56:21 +00:00
joerg
e2107c85f6 Remove Python 2.1 support. 2009-02-09 21:09:20 +00:00
joerg
88db16e83f Remove comment that doesn't reflect the consensus on how to mark support
Python versions.
2009-01-23 18:02:32 +00:00
abs
fb0d9752b1 Only derive PYTHON_VERSION_REQD from PKGNAME_REQD or PKGNAME_OLD if they
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-23 15:39:07 +00:00
wiz
6e2c8165c0 Fix for python23 update to 2.3.7.
Noted by Robert Elz in PR 40082.
2008-12-02 22:15:12 +00:00
snj
54628d0029 Remove one last python15 bit. 2008-11-29 19:30:33 +00:00
snj
2ff595bb24 Oops, forgot to commit these. Remove python15 support. 2008-11-29 18:52:22 +00:00
joerg
db9239e13f Add support to derive the Python version from PKGNAME_OLD. 2008-10-06 14:41:50 +00:00
epg
32b74bcb63 Default EGG_NAME to ${DISTNAME} in egg.mk and drop EGG_NAME from packages that
set it to ${DISTNAME}.
2008-09-12 05:32:37 +00:00
epg
6afcdaa1bf Add PRINT_PLIST_AWK code. 2008-09-10 16:33:38 +00:00
abs
7ebc8f2105 Move PY_NO_EGG?= check outside of defined(PYDISTUTILSPKG) to fix
PLIST of ap22-py25-python and similar packages (removes additional
egg-info file) From tnn@.  Passed via packages@ without objection
2008-06-30 13:41:05 +00:00
joerg
60ab8afe98 Python 2.5 should support eggs as well. 2008-04-26 15:37:21 +00:00
tnn
1d1107a0e7 Remove python 2.1 from the default set of acceptable python packages
so that packages that require it must specify so explicitly.
2008-04-25 16:27:45 +00:00
tnn
40e0e535ac De-orbit support for python 2.0 and python 2.2 under the "three major
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-25 16:11:11 +00:00
tnn
be2d35d1a7 adjust directory for python25 2008-04-24 02:02:04 +00:00
tnn
12935025fe prepare for arrival of Python 2.5 2008-04-24 01:39:25 +00:00
joerg
2bdd4daeaa As all Python packages are required to include lang/python/pyversion.mk
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-18 12:24:21 +00:00
abs
838f71cf62 only set 25 in PYTHON_VERSIONS_ACCEPTED if ../../wip/python25/Makefile found 2008-04-11 15:37:30 +00:00
abs
0d84a34939 Add 25 to PYTHON_VERSIONS_ACCEPTED, so PYTHON_VERSION_DEFAULT=25 works in mk.conf 2008-04-11 13:10:15 +00:00
drochner
897edb1722 update for 2.4.5 2008-04-11 10:44:48 +00:00
joerg
3350db1645 For Python 2.5, check that the wip directory actually exists. 2008-03-15 16:43:25 +00:00
rillig
0f02165471 Removed colons from variable names so they are accessible to "bmake
help".
2008-02-20 10:43:55 +00:00
joerg
2b0bc101a4 Revert last. Python 2.5 is not in the main tree and creating noise for
bulk builds is inacceptable.
2008-02-04 23:27:50 +00:00
xtraeme
2b897c0e5f python 2.5 should be supported because it's the current production release,
make it understand wip/python25 and PYTHON_VERSION_DEFAULT=25.

Change the wip path iff python25 is imported.
2008-02-01 08:17:00 +00:00
rillig
7e52f334bb Improved the wording for the cases where PYTHON_VERSIONS_INCOMPATIBLE
should be used instead of PYTHON_VERSIONS_ACCEPTED.
2008-01-31 19:34:35 +00:00
rillig
300f843ec7 Explained the comment for PYTHON_VERSIONS_ACCEPTED and documented why
PYTHON_VERSIONS_INCOMPATIBLE should be used instead.
2008-01-31 13:47:19 +00:00
joerg
e616abfb19 With the advent of Apache module prefixes the Python package prefix
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.
2007-10-31 00:59:52 +00:00
rillig
3eba055a93 Added PYTHON to ALL_ENV, since otherwise many packages may be confused
by other Python installations.
2007-08-24 07:14:28 +00:00
joerg
3d18e6981d Explicitly specify --root=/ for the non-DESTDIR case so that setuptools
shuts up. Fixes PR 36758.
2007-08-10 13:49:08 +00:00
joerg
37fcba077c EGGNAME -> EGG_NAME for consistency. 2007-08-09 13:25:31 +00:00
joerg
2a3a65e1e2 Add some basic infrastructure to manage Python eggs in pkgsrc.
We use the flat installation mode (e.g. no multiple versions by
default) by default. That avoids having to run DEINSTALL/INSTALL
scripts and allows DESTDIR installation.
2007-08-09 13:24:12 +00:00
tron
8ebe653aaf Correct version number for Python 2.4.x. 2007-06-08 18:50:05 +00:00
rillig
543328633d Added REPLACE_PYTHON as an alias to PYTHON_PATCH_SCRIPTS, to have more
consistent names. (See REPLACE_PERL, REPLACE_AWK, REPLACE_SH, ...)
2007-02-20 11:30:43 +00:00
rillig
10ae5d3fe3 Made "make help" find this. 2007-01-24 09:59:02 +00:00
rillig
9ac98044ac In the BUILD_DEFS message, print which Python version has actually been
selected.
2007-01-07 01:04:22 +00:00
joerg
297e6be4e8 distutils allows installation in a separate tree by passing
--root. Do so when using destdir.
2006-10-09 12:50:38 +00:00
rillig
693597153f Moved the BUILD_DEFS code a bit so that it only gets executed when the
PYTHON_VERSION_DEFAULT can really change things. Thanks to joerg for
noticing it.
2006-09-07 22:12:15 +00:00
rillig
e102b5135c Added the usual documentation.
Whenever this file is used, PYTHON_VERSION_DEFAULT is added to
BUILD_DEFS to inform the user that the Python version is configurable.
2006-09-07 16:22:54 +00:00
drochner
999fc2ed87 set the default defauly python version to 2.4 2006-08-08 09:49:57 +00:00
joerg
39d1e8a0df py15-distutils-* => py15-distutils-[0-9]* 2006-06-30 07:15:30 +00:00
joerg
48a69a810a Don't query distutils when bootstrapping it. Should fix problems
with devel/py-distutils from the bulk builds.
2006-06-15 16:16:12 +00:00
joerg
a3a510958e Remove logic to use the current installed Python as default.
Always prefer the default version and fallback to the first entry
of PYTHON_VERSIONS_ACCEPTED, which is supported by the current
system. Also honour PYTHON_VERSIONS_ACCEPTED and _INCOMPATIBLE,
when PYTHON_VERSION_REQD is used.
2006-06-04 16:26:53 +00:00
drochner
a8e1710951 update python24 to 2.4.3
Python 2.4 is now in bugfix-only mode, no new features are being added. At
least 50 bugs have been squashed since Python 2.4.2, including a number of
bugs and potential bugs found by Coverity.
2006-04-12 20:21:48 +00:00
reed
5abef9be14 Over 1200 files touched but no revisions bumped :)
RECOMMENDED is removed. It becomes ABI_DEPENDS.

BUILDLINK_RECOMMENDED.foo becomes BUILDLINK_ABI_DEPENDS.foo.

BUILDLINK_DEPENDS.foo becomes BUILDLINK_API_DEPENDS.foo.

BUILDLINK_DEPENDS does not change.

IGNORE_RECOMMENDED (which defaulted to "no") becomes USE_ABI_DEPENDS
which defaults to "yes".

Added to obsolete.mk checking for IGNORE_RECOMMENDED.

I did not manually go through and fix any aesthetic tab/spacing issues.

I have tested the above patch on DragonFly building and packaging
subversion and pkglint and their many dependencies.

I have also tested USE_ABI_DEPENDS=no on my NetBSD workstation (where I
have used IGNORE_RECOMMENDED for a long time). I have been an active user
of IGNORE_RECOMMENDED since it was available.

As suggested, I removed the documentation sentences suggesting bumping for
"security" issues.

As discussed on tech-pkg.

I will commit to revbump, pkglint, pkg_install, createbuildlink separately.

Note that if you use wip, it will fail!  I will commit to pkgsrc-wip
later (within day).
2006-04-06 06:21:32 +00:00
ghen
a527d84ce0 Convert all packages using REPLACE_INTERPRETER to the new variable names
without underscores (REPLACE.*.old, REPLACE.*.new, and REPLACE_FILES.*).

Also convert REPLACE.*.new= ${SH:Q} back to ${SH}, as it should not be quoted
here, if at all.

Ok with rillig.
2006-03-11 10:07:49 +00:00
recht
1d6d407223 Add missing part for the last python24 fix. 2006-01-24 07:25:35 +00:00
rillig
dd744146a8 Use PTHREAD_OPTS+=require instead of a "=". 2005-11-04 18:24:37 +00:00
rillig
f3a8eb5b6a Use "+=" for PKG_FAIL_REASON. 2005-11-04 16:50:34 +00:00
recht
1da55da943 sync with new Python 2.4 version 2005-10-02 10:50:57 +00:00
kristerw
64caa70b1d Prevent include of nonexisting file when the requested python version
is not available for the platform.

Mark packages as "unavailable" instead of "broken" when they depend on
a python version that is not available for the platform.
2005-07-09 01:11:15 +00:00
seb
4796586cf3 Fix typo: it's BUILDLINK_DEPMETHOD.python not BUILD_DEPMETHOD.python. 2005-06-23 11:10:32 +00:00
abs
fcb1dc287b Fix srcdist.mk usage for _PYTHON_VERSION 24, and add reminder comment to
python24/Makefile for next update
2005-05-10 22:27:44 +00:00
xtraeme
3a06e87cfc Use PKG_FAIL_REASON when the python version is not found, otherwise
will get an unassociated shell command building some packages.
2005-03-29 15:00:35 +00:00
jlam
15a7c172aa Remove redundant inclusion of pth/buildlink3.mk. This exact same code
already exists in pthread.buildlink3.mk.
2005-03-24 22:44:37 +00:00
jlam
da2fc85390 Don't check for USE_BUILDLINK3 anymore in these files. These are included
by other package Makefiles, and with the deprecation of USE_BUILDLINK3
support in the infrastructure files, these had the potential to break
existing packages.
2005-03-24 22:42:58 +00:00
tron
860a102aa1 Update two more occurances of the old version number. 2005-02-16 10:41:50 +00:00
tron
00386ce424 Update Python 2.3.x version number here, too. 2005-02-16 10:38:02 +00:00
jmmv
df333169fb Convert the python packages to use the alternatives system to install a
bin/python wrapper.  Bump their PKGREVISION to 1.

Also remove the python package.  In order to preserve a similar behavior to
this one using the new framework, start by installing pkg_alternatives.
Then just open its manpage, scroll down to the EXAMPLES section, Applying
filters subsection, and follow the (rather short) directions given there.
2005-01-30 12:44:39 +00:00
recht
06a05b69b4 Remove 23 from PYTHON_VERSIONS_INCOMPATIBLE in the Darwin case.
It builds and runs just fine.
2005-01-24 08:04:41 +00:00
recht
367eed19fe Build Python with thread support by default and turn the existing
python*-pth packages into meta-packages which will install the non-pth
packages. Bump PKGREVISIONs on the non-pth versions to propagate the
thread change, but leave the *-pth versions untouched to not affect
existing installations.
Sync all PYTHON_VERSIONS_AFFECTED lines in package Makefiles.
2005-01-23 20:41:45 +00:00
adrianp
c27f428e15 - Fix an error where -lpython does not get defined on Darwin and causes
the compile of python modules to fail.
- Fixes PR# 28605
- Ok'ed recht@
2004-12-28 22:48:11 +00:00
recht
9c29fe1aeb add Python 2.4 2004-12-05 23:39:03 +00:00
recht
fd59b78727 Add PRINT_PLIST_AWKs for PYINC, PYSITELIB and PYLIB. 2004-07-23 15:35:50 +00:00
recht
4150812b27 add python as category
ok'd a while back at pkgsrcCon by agc and wiz
2004-07-22 09:15:59 +00:00
darcy
f2eae255dc Add quotes around word "install" in the setup command.
Note that this cannot be changed to ${INSTALL} because it is not the install
command but rather an argument to setup.py.  While adding the quotes makes
no difference to the use of the file, it does keep pkglint quiet.  This is
even more important because this file is included by many other packages
and causes warnings when trying to check new Python extensions.
2004-06-12 21:18:31 +00:00
tv
b5fba10e3c Add a PYTHON_VERSIONS_INCOMPATIBLE, an additive variable that can be set
by package Makefiles as well as buildlink3s to prevent usage of particular
versions of Python -- even if they appear in PYTHON_VERSIONS_ACCEPTED.

(And make Darwin exclusion use this variable instead, so that it effectively
overrides any pkg's definition of _ACCEPTED.)
2004-06-06 16:24:55 +00:00
recht
3878bc7011 catch up with the Python 2.3.4 update 2004-06-02 12:30:55 +00:00
recht
4656bfa637 Now that all Python modules have been bl3ified remove the bl2 support. 2004-05-23 17:15:09 +00:00
danw
abae35bcf4 set INSTALL_UNSTRIPPED on Darwin so modules will be able to resolve
symbols in the python binary. Bump PKGREVISION and require the new
versions on Darwin. Fixes pkg/25272
2004-04-23 01:25:09 +00:00
recht
2a79299bd1 Make Python 2.3 the default Python version.
ok'd by drochner@
2004-04-22 16:03:51 +00:00
danw
4b8bae1c91 Fix up the supported versions on Darwin 2004-03-11 23:50:10 +00:00
drochner
2aadeff11c use REPLACE_INTERPRETER instead of our private implementation 2004-03-02 15:26:02 +00:00
lukem
dcea7098b5 Add a python "meta package" to install a symlink from ${PKGBASE}/bin/python
to the preferred version of python (as specified by PYTHON_VERSION_DEFAULT).
This means that cross-platform python scripts with "#!/usr/bin/env python"
actually function on pkgsrc systems without nasty hackery.
Approved by Alistair.
2004-02-06 08:37:22 +00:00
recht
9c27695967 add buildlink3 support 2004-01-25 14:28:52 +00:00
xtraeme
8320f833ef Add missing `*', noted by Min Sik Kim in private email. 2004-01-14 03:22:47 +00:00
xtraeme
0a0152f5e4 Accept any python executable with _PYTHON_PATCH_SCRIPT_SED; previous
scheme only accepts `python', so if we have a script which uses:

#!/path/to/python23

PYTHON_PATCH_SCRIPTS will fail.

Fix provided by Min Sik Kim in PR pkg/24069.
2004-01-14 02:10:47 +00:00
recht
6ff2e5bdd5 update to 2.3.3
This is a bug-fix release for Python 2.3 that fixes a number of bugs,
including a couple of serious errors with weakrefs and the cyclic garbage
collector. There are also a number of fixes to the standard library
- see the release notes ( http://www.python.org/2.3.3/NEWS.html )for details.
2003-12-23 17:24:42 +00:00
recht
d5dc8a4e54 Update to Python 2.3.2
Changes in Python:
Quite a few fixes.. See NEWS for details.

Changes in the pkg:
- add FreeBSD patches from the FreeBSD port
- add fix for a fatal bug in type's GC handling causes segfaults
  (via FreeBSD port)
  see http://cvs.sourceforge.net/viewcvs.py/python/python/dist/src/Misc/NEWS?r1=1.831.4.75&r2=1.831.4.76&diff_format=u
- always build the db 1.85 module (on all platforms)
2003-12-08 21:13:56 +00:00
recht
5ae0dcc995 Fix PYTHON_VERSION_REQG regex for non-NetBSD native make (read for bmake). 2003-12-05 19:24:31 +00:00
darcy
291b036e4d Revert previous change. I was trying to get pkglint to keep quiet but
Marc Recht pointed out that install is not the install command here but
rather an argument to the Python setup program.
2003-12-03 12:26:35 +00:00
darcy
b4b58bfb37 Change hard coded call of install to use INSTALL environment variable. 2003-12-03 12:00:09 +00:00
recht
3619f6de56 Add a comment for the last change. 2003-11-03 18:25:01 +00:00
recht
585a55d24c Fix breakage caused by PKGNAME_REQD quoting in bsd.pkg.mk. 2003-11-01 12:10:00 +00:00
kristerw
1379422e42 DTRT for USE_BUILDLINK2=no (or [nN][oO]). 2003-09-30 22:44:52 +00:00
recht
e914ab3288 hange extension.mk to also install optimized files for distutils packages.
Inspired by FreeBSD "ports".

Fix the PLISTs accordingly.
Also, while at it, remove now obsolete compileall.py calls in post-install
targets and insure that extension.mk is in included before builinlinks of
other Python modules.

Discussed with/ok'ed by drochner@.
2003-09-14 16:43:45 +00:00
recht
13d6925118 Adapt a change from FreeBSD's ports Mk/bsd.python.mk.
Change the order of PYSETUP*AGS and the corresponding target.
Eg.:
s/${PYSETUPINSTALLARGS} install/install ${PYSETUPINSTALLARGS}/

This allows us to automatically install .pyo files with a
PYSETUPINSTALLARGS=-O1 -c and thus drop the compileall.py stuff in the
post-install target.

ok'ed by drochner@
2003-09-11 13:13:47 +00:00
drochner
88109ac95a prepare for Python-2.3 2003-08-04 08:15:47 +00:00
drochner
52947f7d70 update Python22 to 2.2.3
This is a bugfix release.
Also, use the LINK_ALL_LIBGCC_HACK just introduced to link the
interpreter against libgcc. This should fix PR pkg/16144 in the
Python2.2 (and NetBSD-1.5) case.
2003-06-06 17:31:17 +00:00
jdolecek
a796119e39 some packages (e.g. py-wxWindows 2.4.0.7) have the Python setup.py
in subdirectory and need to execute setup.py in that directory, but
still need WRKSRC set to the base directory for configure/patch targets

to handle this, add PYSETUPSUBDIR variable (default empty), and
change do-build+do-install targets to use working directory
${WRKSRC}/${PYSETUPSUBDIR} when executing setup.py
2003-05-09 09:24:17 +00:00
drochner
4aae56f303 use the same logics for pth dependency like in python2?-pth/Makefile 2003-05-07 20:08:18 +00:00
jdolecek
0e8a85b77b add 22pth and 21pth to default 'accepted' list
fixes PR pkg/20601 by David W. Talmage
2003-03-10 09:19:07 +00:00
wiz
d44383d5b9 Remove references to pth/buildlink.mk. 2002-12-23 14:11:36 +00:00
schmonz
0a1bd5acad Replace IGNORE with PKG_FAIL_REASON or PKG_SKIP_REASON as appropriate. 2002-12-07 02:38:52 +00:00
schmonz
687c3e18be On Darwin, since it's currently the only Python that's usable there,
force PYTHON_VERSIONS_ACCEPTED to "22".
2002-11-23 00:54:44 +00:00
tsarna
73dec61f67 Make default version of Python 2.2.x instead of 2.1.x. Since multiple
versions of Python may be installed, and packages that require an
earlier version can always specify that, this should cause no problem,
and it seems sensible that people who don't care should get the latest.

(drochner concurs)
2002-10-30 22:36:16 +00:00
drochner
92b5ac655f another Python version 2002-10-25 10:52:24 +00:00
jlam
a96d235882 Allow additional sed expressions to be used to patch the python scripts by
passing them in with PYTHON_PATCH_SCRIPT_SED.
2002-10-18 16:34:54 +00:00