Commit Graph

218 Commits

Author SHA1 Message Date
Christian Heimes f15c66e143 The new float repr causes too much trouble and pain. I'm disabling the feature until we have sorted out the issues on all machines. 64bit machines seem to have issues and Guido has reported even worse.
Guido: It's pretty bad actually -- repr(1e5) comes out as '1.0'... Ditto for
repr(1eN) for most N... Both in 2.6 and in 3.0...
2007-12-11 00:54:34 +00:00
Christian Heimes 284d927625 Backport of r59456:59458 from py3k to trunk
Issue #1580: New free format floating point representation based on "Floating-Point Printer Sample Code", by Robert G. Burger. For example repr(11./5) now returns '2.2' instead of '2.2000000000000002'.

Thanks to noam for the patch! I had to modify doubledigits.c slightly to support X64 and IA64 machines on Windows. I also added the new file to the three project files.
2007-12-10 22:28:56 +00:00
Christian Heimes cc7f26bf20 Final fix for #1403
The Windows installer and some Linux distros are using compileall to compile all py files in the Lib/ directory. However no test exists to check if all py files can be compiled. I figured out that make testall is the easiest way to test compileall.
2007-11-21 02:50:06 +00:00
Martin v. Löwis 63bf149a26 Patch #1418: Make the AC_REPLACE_FUNCS object files actually work. 2007-11-12 05:14:05 +00:00
Neal Norwitz e77d1031b0 Get rid of warning about not being able to create an existing directory. 2007-10-12 03:01:01 +00:00
Sean Reifscheider aaad0d602b Issue1704287: "make install" fails unless you do "make" first. Make
oldsharedmods and sharedmods in "libinstall".
2007-09-21 06:33:28 +00:00
Ronald Oussoren 9bc2dd6321 Newer autoconf versions (from 2.60) want a 'datarootdir' definition in
(Make-)files that use mandir (and other data directory macros).

This patch solves a warning during configure, specifically:

...
config.status: creating Makefile.pre
config.status: WARNING:  ../Makefile.pre.in seems to ignore the --datarootdir setting
...

See also: <http://www.gnu.org/software/automake/manual/autoconf/Changed-Directory-Variables.html>
2007-09-09 11:13:42 +00:00
Georg Brandl bd9d544f8d #1095: ln -f doesn't work portably, fix in Makefile. 2007-09-07 20:10:49 +00:00
Martin v. Löwis d44a4e9719 Patch #786737: Allow building in a tree of symlinks pointing to
a readonly source.
2007-09-05 11:47:34 +00:00
Matthias Klose 4f2ba5529b - Makefile.pre.in(buildbottest): Remove whitespace at eol. 2007-09-04 19:05:38 +00:00
Matthias Klose 642ac8530a - Makefile.pre.in(buildbottest): Run an optional script pybuildbot.identify
to include some information about the build environment.
2007-09-04 18:17:36 +00:00
Ronald Oussoren 9cca918db8 Patch 1673122: be explicit about which libtool to use, to avoid name clashes
when a users install GNU libtool early in his PATH
2007-07-09 08:41:15 +00:00
Anthony Baxter 2464087bda add parsetok.h as a dependency - previously, changing this file doesn't
cause the right files to be rebuilt.
2007-01-12 09:35:56 +00:00
Georg Brandl 66fab425a8 #1577756: svnversion doesn't react to LANG=C, use LC_ALL=C to force
English output.
2006-12-08 20:46:11 +00:00
Andrew M. Kuchling 9627ce116f [Patch #1503717] Tiny patch from Chris AtLee to stop a lengthy line from being printed 2006-10-27 18:15:02 +00:00
Jeremy Hylton 644dddcc3f Move peephole optimizer to separate file. 2006-08-21 16:19:37 +00:00
Georg Brandl b142c63fd9 Fix makefile changes for python-config. 2006-07-30 16:20:10 +00:00
Fred Drake fbdeaad069 expunge the xmlcore changes:
41667, 41668 - initial switch to xmlcore
  47044        - mention of xmlcore in What's New
  50687        - mention of xmlcore in the library reference

re-apply xmlcore changes to xml:
  41674        - line ending changes (re-applied manually), directory props
  41677        - add cElementTree wrapper
  41678        - PSF licensing for etree
  41812        - whitespace normalization
  42724        - fix svn:eol-style settings
  43681, 43682 - remove Python version-compatibility cruft from minidom
  46773        - fix encoding of \r\n\t in attr values in saxutils
  47269        - added XMLParser alias for cElementTree compatibility

additional tests were added in Lib/test/test_sax.py that failed with
the xmlcore changes; these relate to SF bugs #1511497, #1513611
2006-07-29 16:56:15 +00:00
Barry Warsaw 00decd7835 Patch #1520294: Support for getset and member descriptors in types.py,
inspect.py, and pydoc.py.  Specifically, this allows for querying the type of
an object against these built-in C types and more importantly, for getting
their docstrings printed in the interactive interpreter's help() function.

This patch includes a new built-in module called _types which provides
definitions of getset and member descriptors for use by the types.py module.
These types are exposed as types.GetSetDescriptorType and
types.MemberDescriptorType.  Query functions are provided as
inspect.isgetsetdescriptor() and inspect.ismemberdescriptor().  The
implementations of these are robust enough to work with Python implementations
other than CPython, which may not have these fundamental types.

The patch also includes documentation and test suite updates.

I commit these changes now under these guiding principles:

1. Silence is assent.  The release manager has not said "no", and of the few
   people that cared enough to respond to the thread, the worst vote was "0".

2. It's easier to ask for forgiveness than permission.

3. It's so dang easy to revert stuff in svn, that you could view this as a
   forcing function. :)

Windows build patches will follow.
2006-07-27 23:43:15 +00:00
Ronald Oussoren 518b95c376 Install the compatibility symlink to libpython.a on OSX using 'ln -sf' instead
of 'ln -s', this avoid problems when reinstalling python.
2006-07-25 19:13:35 +00:00
Georg Brandl ced52a97b6 Patch #1523356: fix determining include dirs in python-config.
Also don't install "python-config" when doing altinstall, but
always install "python-config2.x" and make a link to it like
with the main executable.
2006-07-24 13:28:57 +00:00
Ronald Oussoren 0350f81abe macosx: Install a libpython2.5.a inside the framework as a symlink to the actual
dylib at the root of the framework, that way tools that expect a unix-like
install (python-config, but more importantly external products like
mod_python) work correctly.
2006-06-27 15:45:32 +00:00
Neal Norwitz c315a0fa40 Verify buildbot picks up these changes (really needs testing after last change to Makefile.pre.in) 2006-06-27 04:28:56 +00:00
Neal Norwitz 3b6b80159e Fix SF bug #1513032, 'make install' failure on FreeBSD 5.3.
No need to install lib-old, it's empty in 2.5.
2006-06-27 04:12:58 +00:00
Ronald Oussoren fb322cd3de Also install the .egg-info files in Lib. This will cause wsgiref.egg-info to
be installed.
2006-06-25 21:19:06 +00:00
Neal Norwitz 60373cd244 Copy the wsgiref package during make install. 2006-06-22 06:30:50 +00:00
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