Commit Graph

192 Commits

Author SHA1 Message Date
Ronald Oussoren e0cfb16f99 Remove message about using make frameworkinstall, that's no longer necesssary 2006-06-11 19:45:57 +00:00
Georg Brandl 66a0dbb576 Bug #1502728: Correctly link against librt library on HP-UX. 2006-06-08 12:54:13 +00:00
Ronald Oussoren 2db3a8f73e And the last bit: move IDLE one level up and adjust makefiles 2006-06-07 19:06:01 +00:00
Ronald Oussoren 5b78732a20 * Ensure that "make altinstall" works when the tree was configured
with --enable-framework
* Also for --enable-framework: allow users to use --prefix to specify
  the location of the compatibility symlinks (such as /usr/local/bin/python)
2006-06-06 19:50:24 +00:00
Neal Norwitz 377f54e85f Revert last checkin, it is better to do make distclean 2006-05-31 08:01:08 +00:00
Neal Norwitz 5b72cd321d I'm impatient. I think this will fix a few more problems with the buildbots.
I'm not sure this is the best approach, but I can't think of anything better.
If this creates problems, feel free to revert, but I think it's safe and
should make things a little better.
2006-05-30 07:36:54 +00:00
Richard Jones 7b9558d37d Conversion of exceptions over from faked-up classes to new-style C types. 2006-05-27 12:29:24 +00:00
Ronald Oussoren 567a8ffd09 Integrate installing a framework in the 'make install'
target. Until now users had to use 'make frameworkinstall'
to install python when it is configured with '--enable-framework'.
This tends to confuse users that don't hunt for readme files
hidden in platform specific directories :-)
2006-05-26 11:43:26 +00:00
Ronald Oussoren 836b039b7c Rework the build system for osx applications:
* Don't use xcodebuild for building PythonLauncher, but use a normal unix
  makefile. This makes it a lot easier to use the same build flags as for the
  rest of python (e.g. make a universal version of python launcher)
* Convert the mac makefile-s to makefile.in-s and use configure to set makefile
  variables instead of forwarding them as command-line arguments
* Add a C version of pythonw, that we you can use '#!/usr/local/bin/pythonw'
* Build IDLE.app using bundlebuilder instead of BuildApplet, that will allow
  easier modification of the bundle contents later on.
2006-05-14 19:56:34 +00:00
Ronald Oussoren 988117fd63 Patch 1471883: --enable-universalsdk on Mac OS X 2006-04-29 11:31:35 +00:00
Brett Cannon ab012af6ed Added a pycremoval rule. Called by clean, it removes all .pyc and .pyo files.
Handy to have as a separate rule from clean when mucking around with bytecode
generation.
2006-04-18 23:58:52 +00:00
Phillip J. Eby cea434c69f It's probably a good idea to actually *install* setuptools, too. ;) 2006-04-18 04:34:50 +00:00
Martin v. Löwis 4be4e657e0 Add reindent target. 2006-04-17 19:25:49 +00:00
Martin v. Löwis c90b17ec82 Patch #1161914: Add python-config. 2006-04-15 08:13:05 +00:00
Martin v. Löwis 7580149bde Patch #1355883: Build Python-ast.c and Python-ast.h
independently. Fixes #1355883.
2006-04-14 15:02:32 +00:00
Martin v. Löwis 0f48d98b74 Patch #1324762: Change --with-cxx to --with-cxx-main. 2006-04-14 14:34:26 +00:00
Thomas Heller fc9fc4764f ctypes.macholib is needed. 2006-04-03 20:10:50 +00:00
Skip Montanaro 353aa8772a Make needs to be told to install sqlite 2006-04-03 16:40:10 +00:00
Armin Rigo efb6e752cf add the ctypes.test subpackage to a normal Unix installation --
otherwise, test/test_ctypes.py fails.  What about ctypes.macholib?
2006-03-28 20:30:45 +00:00
Hye-Shik Chang dfbd34c80f Cosmetic improvement for r43247 2006-03-23 12:12:44 +00:00
Hye-Shik Chang 55f316c390 Skip to install files for empty directories; to name it, Lib/lib-old.
BSD make stops the build when it tries to expand wild cards on empty
directories.
2006-03-23 12:04:37 +00:00
Barry Warsaw d6316a9fea Add email/mime to LIBSUBDIRS. Fixes SF bug # 1454912. 2006-03-22 14:57:54 +00:00
Thomas Heller 922ff4a321 Don't delete non-autogenerated source files when cleaning up. 2006-03-16 07:33:49 +00:00
Thomas Heller d77eb1ff43 In 'make clean', delete some files that are generated by the _ctypes/libffi
configure step.
2006-03-15 08:34:38 +00:00
Martin v. Löwis bfa8bd7b65 Let the buildbot make a single pass in the test suite only. 2006-03-13 10:59:32 +00:00
Thomas Heller cf567c1b9c Changes to build the _ctypes extension module.
Based on a patch from Hye-Shik Chang.
2006-03-08 19:51:58 +00:00
Neal Norwitz df431657fd Allow buildbot to pass extra test flags to regrtest (specifically -r) via the environment. 2006-02-22 07:24:06 +00:00
Martin v. Löwis c5bf5a00a3 Always set SVNVERSION to "exported" if it otherwise fails. 2006-01-05 10:33:59 +00:00
Martin v. Löwis dea59e5755 Stop maintaining the buildno file.
Also, stop determining Unicode sizes with PyString_GET_SIZE.
2006-01-05 10:00:36 +00:00
Neal Norwitz f2d66fe1ec Try to make svnversion test more portable, based on Sjoerd's suggestion 2006-01-05 06:38:15 +00:00
Barry Warsaw 6bfd8de9e6 SF bug #1395926: Also test for svnversion command on $PATH before using it to
calculate the build number.
2006-01-03 14:30:55 +00:00
Neal Norwitz 1a196b5db8 As discussed on python-dev, don't remove Python-ast.[ch] with distclean
even though they are generated.  Since these files require Python 2.2+,
it's possible they can't be created on a fresh system.
2006-01-03 01:38:53 +00:00
Barry Warsaw ce3a9131c3 Revert most of r41765. Don't use $Revision$ in Py_GetBuildNumber(). Keep the
use of $(srcdir) in Makefile.pre.in so builds outside the source dir still
work.
2005-12-19 14:43:44 +00:00
Barry Warsaw a3bdc2c2a5 Handle a couple of use cases discussed in python-dev w.r.t. calculating the
Subversion revision number.

First, in an svn export, there will be no .svn directory, so use an in-file
$Revision$ keyword string with the keyword chrome stripped off.

Also, use $(srcdir) in the Makefile.pre.in to handle the case where Python is
build outside the source tree.
2005-12-18 22:46:35 +00:00
Barry Warsaw 2a38a86c1c Expose Subversion revision number (calculated via "svnversion .") to Python.
Add C API function Py_GetBuildNumber(), add it to the interactive prompt
banner (i.e. Py_GetBuildInfo()), and add it as the sys.build_number
attribute.  The build number is a string instead of an int because it may
contain a trailing 'M' if there are local modifications.
2005-12-18 01:27:35 +00:00
Neal Norwitz adb69fcdff Merge from ast-arena. This reduces the code in Python/ast.c by ~300 lines,
simplifies a lot of error handling code, and fixes many memory leaks.
2005-12-17 20:54:49 +00:00
Fredrik Lundh d39683396b fixed installation of xmlcore libraries (including xmlcore.etree) 2005-12-14 17:36:36 +00:00
Skip Montanaro f6a904456e delete Python-ast.[ch] in distclean 2005-11-13 15:54:15 +00:00
Jeremy Hylton 3e0055f8c6 Merge ast-branch to head
This change implements a new bytecode compiler, based on a
transformation of the parse tree to an abstract syntax defined in
Parser/Python.asdl.

The compiler implementation is not complete, but it is in stable
enough shape to run the entire test suite excepting two disabled
tests.
2005-10-20 19:59:25 +00:00
Neal Norwitz 892a33f85a Get "make install" working again after adding Lib/test/bad_coding.py
which can't be compiled.  Thanks to Mat Martineau for spotting the problem.
2005-10-04 04:32:42 +00:00
Brett Cannon 08cd598c21 Introduced EXTRA_CFLAGS as an environment variable used by the Makefile. Meant
to be used for flags that change binary compatibility.

Distutils was tweaked to also use the variable if used during compilation of
the interpreter.
2005-04-24 22:26:38 +00:00
Bob Ippolito 7026a0aeef patch [1171735] - Darwin 8's headers disable functionality when
POSIX is enabled.  This prevents the toolbox glue, all of Carbon,
and various other non-POSIX features from compiling.  The POSIX
symbols are  still used by default, so turning off the #define
doesn't hurt.

Additionally, linker flags have changed for Darwin 8, and are
different for Darwin 8/gcc4 (default) and Darwin 8/gcc3.3.

Approved by Anthony
2005-03-28 23:23:47 +00:00
Fred Drake e612c8ec81 install distutils.tests on Unix (contributed patch)
(closes SF bug #1093173)
2005-01-19 06:24:58 +00:00
Brett Cannon 516592f4ff setup.py now uses the library directories specified in LDFLAGS (``-L``
directories) and the include directories specified in CPPFLAGS (``-I``
directories) for compiling the extension modules.

This has led to the core being compiled with the values in the shell's
CPPFLAGS.  It has also removed the need for special casing to use Fink and
DarwinPorts under darwin since the needed directories can now be specified in
LDFLAGS and CPPFLAGS (e.g., DarwinPorts users can now do
``LDFLAGS=-L/opt/local/lib; CPPFLAGS=-I/opt/local/include; ./configure`` for
everything to work properly).

Parsing the values in the environment variables is done with getopt.  While optparse
would have been a nicer solution it cannot be used because of dependency issues
at execution time; optparse uses gettext which uses struct which will not have
been compiled when the code is imported.  If optparse ever makes its
importation of gettext optional by catching ImportError and setting _() to an
identity function then it can be used.
2004-12-07 00:42:59 +00:00
Martin v. Löwis 4d9559a47e Replace -soname with -h for Solaris compatibility. Fixes #1034496.
Backported to 2.3.
2004-09-26 17:26:55 +00:00
Jack Jansen b36687a483 Don't hardcode "Python" as the framework name, we have a variable for it:
$PYTHONFRAMEWORK.
2004-07-16 08:43:47 +00:00
Anthony Baxter 1e2bd5bfb6 install test/decimaltestdata as well 2004-07-12 09:25:18 +00:00
Martin v. Löwis 737ea82a5a Patch #774665: Make Python LC_NUMERIC agnostic. 2004-06-08 18:52:54 +00:00
Jack Jansen 6b08a40442 Partial fix for #887242 (link extensions with dynamic_lookup in stead
of hard linking against the framework).

If $MACOSX_DEPLOYMENT_TARGET is set, and >= 10.3, during configure we
setup extensions to link with dynamic lookup. We also record the
value in the Makefile.

Distutils checks whether a value for MACOSX_DEPLOYMENT_TARGET was
recorded in the Makefile, and if it was insists that the current
value matches.

This is only a partial fix because it only applies to 2.4, and the
"two python problem" exists with Python 2.3 shipped with MacOSX 10.3,
which we have no influence over.
2004-06-03 12:41:45 +00:00
Martin v. Löwis e440e47e91 Patch #957398: Add public API for Generator Object/Type. 2004-06-01 15:22:42 +00:00