Commit Graph

657 Commits

Author SHA1 Message Date
Neal Norwitz 718d307df8 Get locale module to build on aix4 2003-03-21 03:08:59 +00:00
Skip Montanaro ba9e978180 build _csv extension module 2003-03-20 23:34:22 +00:00
Jack Jansen 7a251db9e6 Build the OSATerminology module on MacOSX. 2003-03-06 23:03:43 +00:00
Jack Jansen d79284843a _CG module only needs the ApplicationServices framework, not Carbon. 2003-03-02 21:31:51 +00:00
Neal Norwitz 6e2d1c7ab8 Just pointed out the code was better written with
try: # ...
        except ImportError, why:
        except: # ...
All other changes are re-indenting/formatting.
2003-02-28 17:39:42 +00:00
Neal Norwitz 3f5fcc8acc Fix SF bug #690012 (among others), iconv_codec stops build
Change setup.py to catch all exceptions.
  - Rename module if the exception was an ImportError
  - Only warn if the exception was any other error

Revert _iconv_codec to raising a RuntimeError.
2003-02-28 17:21:39 +00:00
Jack Jansen 9ce623fce5 That fix was bogus, undone. The problem is that the iconv include file
is found if you are running fink, but the module doesn't work. For now
I disabled building iconv_codec on darwin.
2003-02-24 12:56:36 +00:00
Jack Jansen 70ec40befa The test for iconv_incs tested explicitly for None, but [] is returned
if the include files cannot be found.
2003-02-24 12:48:58 +00:00
Neal Norwitz c3bbeb3749 ossaudiodev has been building, so remove unnecessary pass and invalid comment 2003-02-23 21:47:05 +00:00
Guido van Rossum 14ee89c785 Add PEP 301 metadata. 2003-02-20 02:52:04 +00:00
Guido van Rossum 12471d6389 Don't use self.announce() in a function that's not a method.
Use level=3 (i.e. log.WARN) for the warnings about failed imports.
(Hmm...  Why is that code in an "if 1: ..."?  What's the else branch
for?)
2003-02-20 02:11:43 +00:00
Jack Jansen 0feb8c347e Don't try to build dl on darwin. It doesn't build out of the box, and it
wouldn't serve a useful purpose anyway.
2003-02-18 10:24:34 +00:00
Guido van Rossum 0c016a9590 Re-enable compiling ossaudiodev now that it seems to work again. 2003-02-13 16:12:21 +00:00
Guido van Rossum 6c7438e784 Add compilation instructions for xxmodule.c. 2003-02-11 20:05:50 +00:00
Jason Tishler 9181c94e05 This patch reverts the following:
It also prevents building against the real X headers, if installed.

After discussions with the Cygwin project lead, I believe that building
against the real X headers is OK. Especially, since the psuedo-X headers
are *not* installed by the Cygwin Tcl/Tk binary package.
2003-02-05 15:16:17 +00:00
Jason Tishler cccac1a163 This patch enables Cygwin Python to build _tkinter against Tcl/Tk 8.4.
Note that this patch just reverts the lib_prefix (i.e., "cyg") portion
of my Tcl/Tk 8.3 patch. It seems that Cygwin Tcl/Tk is using a more
normal file naming convention again.
2003-02-05 15:06:46 +00:00
Neal Norwitz d156c2d782 Get ossaudiodev to compile on freebsd 4.7 2003-02-02 17:59:06 +00:00
Raymond Hettinger 96ef8115dd Move itertools module from the sandbox and into production. 2003-02-01 00:10:11 +00:00
Tim Peters 2c60f7a136 Whitespace normalization. 2003-01-29 03:49:43 +00:00
Martin v. Löwis 9789aefa61 Patch #670715: Universal Unicode Codec for POSIX iconv. 2003-01-26 11:30:36 +00:00
Martin v. Löwis fc03a94aac Incorporate Expat 1.95.6. 2003-01-25 22:41:29 +00:00
Guido van Rossum 81d40d6f47 ossaudiodev.c currently gives compilation errors, and Greg doesn't fix
it, so disable the build for now.
2003-01-21 21:01:37 +00:00
Greg Ward 0a6355eb1f Add reminder that ossaudiodev can/should also be built on FreeBSD. 2003-01-08 01:37:41 +00:00
Guido van Rossum dca3f2f54a Enable building and testing of ossaudiodev for Linux. 2003-01-08 01:23:01 +00:00
Skip Montanaro 5a47e5ba04 The bsddb3 library does not build w/ Berkeley DB 3.0. 3.1 is the earliest
supported version.
2003-01-04 04:06:56 +00:00
Skip Montanaro decc6a47df Split OPT make variable into OPT and BASECFLAGS. The latter contains those
compiler flags which are necessary to get a clean compile.  The former is
for user-specified optimizer, debug, trace fiddling.  See patch 640843.

Add /sw/lib and /sw/include to setup.py search paths on Darwin to take
advantage of fink goodies.

Add scriptsinstall target to Makefile to install certain scripts from
Tools/scripts directory.
2003-01-01 20:07:49 +00:00
Jason Tishler bbe8961698 Patch #660485: Cygwin _tkinter Tcl/Tk 8.3 patch
The attached patch enables Cygwin Python to
build cleanly against the latest Cygwin Tcl/Tk
which is based on Tcl/Tk 8.3. It also prevents
building against the real X headers, if installed.
2002-12-31 20:30:46 +00:00
Barry Warsaw 40819d5515 Search for and use BerkeleyDB 4.1 if it's available. Python's
extension module now supports it.
2002-12-30 20:51:12 +00:00
Raymond Hettinger 40f6217092 SF patch 658251: Install a C implementation of the Mersenne Twister as the
core generator for random.py.
2002-12-29 23:03:38 +00:00
Jack Jansen 6810f92d4d The extension module macfs has been replaced by a pure Python version. 2002-12-19 23:27:58 +00:00
Michael W. Hudson 529a505da4 This is J. Lewis Muir's patch:
[ 629278 ] install lib-dynload .so files mode 555

fixing

[ 583206 ] lib-dynload/*.so wrong permissions
[ 425007 ] Python 2.1 installs shared libs with mode 0700

Phew.
2002-12-17 16:47:17 +00:00
Guido van Rossum a29d508ec4 Build the datetime module for *n*x. 2002-12-16 20:31:57 +00:00
Martin v. Löwis 427a290c9a Patch #629126: Detect BLT by also looking for libBLT. 2002-12-12 20:23:38 +00:00
Marc-André Lemburg b28de0d79f Patch to make _codecs a builtin module. This is necessary since
Python 2.3 will support source code encodings which rely on the
builtin codecs being available to the parser.

Remove struct dependency from codecs.py
2002-12-12 17:37:50 +00:00
Martin v. Löwis a37d61f1d6 Correct db3 /opt/sfw library path. Link ndbm with libc only if ndbm.h
is present and libndbm is not. Add runtime libs to dbm if linked against
Berkeley DB.
2002-12-07 14:41:17 +00:00
Martin v. Löwis 05d4d562d7 Search in standard library and include dirs for Sleepycat stuff.
Fixes #590377.
2002-12-06 10:25:02 +00:00
Andrew M. Kuchling a246d9fefd [Patch #641685] setup.py contained code for finding libraries, instead
of using the CCompiler.find_library_file() provided by the Distutils.
   This patch fixes it to use the Distutils method at the cost of some
   additional glue.

(The duplication resulted in the SSL module not being automatically
built on Macs; the Distutils knew that shared libraries on OS X have a
.dylib extension, but the setup.py code didn't.)
2002-11-27 13:43:46 +00:00
Just van Rossum 05ced6aa76 Don't disable building Mac-specific modules for a non-framework build:
whether they crash or not is not a matter of using a framework or not,
but whether the code is run from an app bundle or not. And that it
_can_ crash (instead of tracing back) is Apple's bug anyway, not ours.
2002-11-24 23:15:57 +00:00
Jack Jansen d0e59fb68d Added the alias manager too. The interface isn't perfect yet: the alias
manager doesn't always have the alias as the first argument, so things
become functions in stead of methods.
2002-11-22 15:53:32 +00:00
Jack Jansen e2ba87396c Got angry and added support for pretty much the whole file and folder
manager. This should allow us the get rid of most of the FSSpecs, only
navigation services remains to be done.
2002-11-22 14:58:35 +00:00
Martin v. Löwis 21645fc073 Don't try to use unsupported DB versions. 2002-11-19 08:30:08 +00:00
Martin v. Löwis 6aa4a1f29c Import PyBSDDB 3.4.0. Rename historical wrapper to bsddb185. 2002-11-19 08:09:52 +00:00
Martin v. Löwis cc40cede7a Look in db4 directories when checking for db4. 2002-11-09 19:53:04 +00:00
Andrew M. Kuchling 15628fe7bc Simply delete the fpectl module, instead of leaving it commented out;
if people want to compile it, they should edit Modules/Setup, not setup.py
2002-11-08 13:11:50 +00:00
Gustavo Niemeyer f8ca8364c9 Patch implementing bz2 module.
* setup.py
  (PyBuildExt.detect_modules): Included bz2 module detection.

* Modules/bz2module.c
* Lib/test/test_bz2.py
* Doc/lib/libbz2.tex
  Included files implementing, testing, and documenting bz2 module.

* Doc/Makefile.deps
* Doc/lib/lib.tex
  Include references to libbz2.tex.

* Misc/NEWS
  (Library): Mention distutils' c++ linkage patch, and new bz2 module.
2002-11-05 16:50:05 +00:00
Guido van Rossum e0fea6c4ed [SF bug 620364]
In build_extensions(), don't proceed if srcdir is None.  Probably
somebody who tried this on Windows. :-)
2002-10-14 20:48:09 +00:00
Guido van Rossum fa82181436 Disable building of the fpectl module -- it's dangerous or useless
except in the hands of experts.  Will backport to 2.2.2.
2002-09-25 14:59:57 +00:00
Guido van Rossum 770acd3f7f Only build the 'dl' extension when sys.maxint equals 2**31-1.
This module raises "SystemError: module dl requires sizeof(int) ==
sizeof(long) == sizeof(char*)" when compiled on 64-bit platforms.
2002-09-12 14:41:20 +00:00
Jack Jansen 983258ed7e Revived the Carbon.Help module, but implementing the MacHelp API in stead
of the defunct Balloons API. Help tags are TBD, but at least this gives
us access to the help menu.
2002-08-29 21:09:00 +00:00
Skip Montanaro ccfdde86eb Slight reordering of directories searched for BerkDB libs and include files.
Push /usr/... further down the list - always check /usr/local/... before
/usr/...

Doubt this will help with http://python.org/sf/589427 or not, but these
changes were prompted by my investigation of that bug report.  I wasn't able
to reproduce that problem though
2002-08-15 01:34:38 +00:00
Jason Tishler d28216b279 Patch #588564: _locale library patch
This patch enables setup.py to find gettext routines when they are
located in libintl instead of libc.  Although I developed this patch for
Cygwin, I hope that it can be easily updated to support other platforms
(if necessary). I tested this patch under Cygwin and Red Hat Linux 7.1.
2002-08-14 11:13:52 +00:00
Barry Warsaw 259b1e18b4 Regress Guido's change of 2002/08/06 to check for the zlib version
1.1.4.  Redhat hasn't upgraded but does provide a patched 1.1.3
package, so checking for 1.1.4 just makes life difficult.
2002-08-13 20:09:26 +00:00
Guido van Rossum 8cdc03dca5 Update the URL for getting zlib, and update the minimal required
version to 1.1.4 (because of the 1.1.3 security problem).  Also
replace a funny use of line.find() with line.startswith().
2002-08-06 17:28:30 +00:00
Fred Drake 5f8a23f32f Since the errno module is needed by os._execvpe(), and that is used by the
setup.py (indirectly) script to build the standard dynamically loaded
modules, the errno module is being made static so it will always be
available.
Closes SF bug #591205 (needed on trunk only).
2002-08-05 18:06:17 +00:00
Jack Jansen a30d1447cf Build the _IBCarbon module. 2002-08-04 22:04:25 +00:00
Michael W. Hudson c4c718057e Revert last checkin. Man, that was stupid. 2002-08-03 16:39:22 +00:00
Michael W. Hudson 210f5585d2 Another fix for:
[ 589427 ] standard include paths on command line

_ssl still got /usr/include on the command line.
2002-08-03 16:16:22 +00:00
Michael W. Hudson 90b8e4d40c Fix for
[ 589427 ] standard include paths on command line
2002-08-02 13:55:50 +00:00
Jack Jansen d1b2045958 The readme file said that OSX Carbon modules were only built for
-enable-framework builds, but setup.py built them anyway. Fixed.
Also normalized whitespace.

Bugfix candidate.
2002-07-08 21:39:36 +00:00
Jack Jansen 73aa1fff85 More fixes for building MacPython extension modules. It now actually succeeds
in building various modules.
2002-06-27 22:06:49 +00:00
Jack Jansen 4439b7c67e Fixed a few showstoppers in the process of making MacPython use setup.py to build it's exension modules (in stead of relying on a private mechanism). It definitely doesn't work yet, but it looks promising. 2002-06-26 15:44:30 +00:00
Barry Warsaw 6fe3d7009e In the Extension() call, add runtime_library_dirs so that a useful
-R/--rpath flag gets passed to the linker.  Source builds of
BerkeleyDB do their default installs in locations not normally on
ld.so's search path.
2002-06-24 20:27:33 +00:00
Jack Jansen 0b06be7b0b Patch #557719 by Tony Lownds, slightly massaged by me: streamline the
OSX framework build process. Things fixed/modified:
- the filesystem case-sensitivity test now works for builds outside
  the source directory
- various other fixes for building outside the source directory
- python.app now has a target in the main Makefile
- WASTE and AquaTk are found more automatically
2002-06-21 14:48:38 +00:00
Fred Drake fc8341d070 Update description of the Expat library.
Closes SF bug #556370.
2002-06-17 17:55:30 +00:00
Skip Montanaro 57454e57f8 This introduces stricter library/header file checking for the Berkeley DB
library.  Since multiple versions can be installed simultaneously, it's
crucial that you only select libraries and header files which are compatible
with each other.  Version checking is done from highest version to lowest.
Building using version 1 of Berkeley DB is disabled by default because of
the hash file bugs people keep rediscovering.  It can be enabled by
uncommenting a few lines in setup.py.  Closes patch 553108.
2002-06-14 20:30:31 +00:00
Jeremy Hylton 340043ea79 Munge depends files to have absolute paths.
Look in both moddirlist and incdirlist, since a .h could be in either.
2002-06-13 17:38:11 +00:00
Guido van Rossum df1e092a1f Get rid of accidentally checked-in reference to "bits". 2002-06-13 15:08:35 +00:00
Guido van Rossum 47d3a7afda Add dependencies on socketmodule.h. 2002-06-13 14:41:32 +00:00
Martin v. Löwis f90ae20354 Patch #488073: AtheOS port. 2002-06-11 06:22:31 +00:00
Fred Drake 16c8d702a4 When using a Python that has not been installed to build 3rd-party
modules, distutils does not understand that the build version of the
source tree is needed.

This patch fixes distutils.sysconfig to understand that the running
Python is part of the build tree and needs to use the appropriate
"shape" of the tree. This does not assume anything about the current
directory, so can be used to build 3rd-party modules using Python's
build tree as well.

This is useful since it allows us to use a non-installed debug-mode
Python with 3rd-party modules for testing. It as the side-effect that
set_python_build() is no longer needed (the hack which was added to
allow distutils to be used to build the "standard" extension modules).

This closes SF patch #547734.
2002-06-04 15:28:21 +00:00
Jason Tishler 24cf7766bc Patch #491107: Cygwin setup.py import workaround patch
mwh wrote:
> Jason, feel free to complain if you think this isn't
> the right thing to do.

I guess that I would like to complain and reopen this
issue. :,)  I cannot build a Python 2.2.1 with threads
under Cygwin without this patch even though I'm using
Michael's static _socket workaround.  This is due to the
Cygwin fork() problem with DLL base address conflicts
that are triggered by importing many modules during the
setup.py run.  Similar problems can also be caused by
regrtest.py.

Even after my rebase patch is accepted into Cygwin's
setup.exe, I feel this patch will still be necessary.
This is because during the build process, the shared
extensions (i.e., DLLs) will not be rebased yet.  Hence,
the potential for DLL base address conflicts will exist.

One way to obviate this patch is to push the rebase
functionality into Cygwin's ld.  Unfortunately, I don't
think this is likely to happen.  Another possible way,
is to use the yet to be defined and implemented unload
module functionality:

    http://mail.python.org/pipermail/python-dev/2001-December/019028.html
2002-05-22 16:46:15 +00:00
Guido van Rossum 2e1c09c1fd Removed old Digital Creations copyright/license notices (with
permission from Paul Everitt).  Also removed a few other references to
Digital Creations and changed the remaining ones to Zope Corporation.
2002-04-04 17:52:50 +00:00
Neal Norwitz 03ffbcd393 Fix SF # 532618 517704, install problems when building modules fail.
Fix whitespace on a line also.
2002-03-25 14:20:09 +00:00
Michael W. Hudson 0c46c0cc70 Apply Jack's patch attached to
[ 508779 ] Disable flat namespace on MacOS X

I presume you wanted this on the trunk too, Jack?

2.2.1 candidate.
2002-03-07 09:58:56 +00:00
Michael W. Hudson 7113d9607b Changes to what we do to modules that don't import, as
discussed on python-dev.
2002-03-01 14:16:31 +00:00
Marc-André Lemburg a5d2b4cb18 Break SSL support out of _socket module and place it into a new
helper module _ssl.

The support for the RAND_* APIs in _ssl is now only enabled
for OpenSSL 0.9.5 and up since they were added in that
release.

Note that socketmodule.* should really be renamed to _socket.* --
unfortunately, this seems to lose the CVS history of the file.

Please review and test... I was only able to test the header file
chaos in socketmodule.c/h on Linux. The test run through fine
and compiles don't give errors or warnings.

WARNING: This patch does *not* include changes to the various
non-Unix build process files.
2002-02-16 18:23:30 +00:00
Martin v. Löwis 8301256a44 Compute expat -I directives from srcdir. Fixes #517214. 2002-02-14 01:25:37 +00:00
Martin v. Löwis 8fef47be5f Define VERSION in expat.h. 2002-02-13 07:47:16 +00:00
Martin v. Löwis cf453fe2a8 Use included Expat library. Drop support for older expat versions. 2002-02-11 23:27:45 +00:00
Michael W. Hudson af14289c54 Fix for
[ #433775 ] module build dir first in test import

though not in the way the summary would suggest; use imp.load_dynamic()
in setup.py to ensure we're testing the dynamic object we think we are.
2002-01-23 15:07:46 +00:00
Michael W. Hudson 5b10910d7a Sjoerd Mullender pointed out that setup.py contained some tabs,
so I threw reindent.py at it and look what happened!

Did setup.py escape Tim's regular whitespace normalizations?
2002-01-23 15:04:41 +00:00
Jack Jansen 796720b314 Mac _Scrap module is now carbon-compliant, so build it on OSX. 2002-01-21 23:10:36 +00:00
Michael W. Hudson 39230b3230 Apply a variant of patch
[ #420565 ] makes setup.py search sys.prefix

I think this also fixes some bug in the tracker about not searching
directories that don't exist, but I can't find the report :(
2002-01-16 15:26:48 +00:00
Martin v. Löwis 93227275dc Patch #497126: Always compile dl. 2002-01-01 20:18:30 +00:00
Guido van Rossum 8efd6ceecc Update comments about mpz, pointing to gmpy and mxNumber rather than
to the non-existing pympz (did that ever exist?).
2001-12-17 17:24:43 +00:00
Just van Rossum e9039b1742 build CoreGraphics under darwin 2001-12-13 13:41:36 +00:00
Jack Jansen dd67a8ed2c Build _CarbonEvt module on Mac OS X. Still gives a couple of warnings
but compiles OK.
2001-12-12 23:03:17 +00:00
Jack Jansen edeea04bfd Mods to make WASTE module compile and link for MachoPython. Not tested
any further, yet.
2001-12-09 23:08:54 +00:00
Fred Drake 9028d0a525 Visious hackery to solve a build-control problem related to our use of
distutils for the library modules built as shared objects.  A better solution
appears possible, but with the threat that the distutils becomes more
magical ("complex").
This closes SF bug #458343.
2001-12-06 22:59:54 +00:00
Fred Drake 38419c003c Wrap some long lines. 2001-12-06 22:24:47 +00:00
Andrew M. Kuchling e7ffbb24e8 [Bug #480882] Remove now-pointless check for existence for _curses_panel.c;
Bugfix candidate.
2001-12-06 15:57:16 +00:00
Jack Jansen 244e761fbf As of OS X 10.1.1 the version numbering scheme has changed. Convert all "darwin*" to "darwin" and use that for testing. 2001-12-05 15:54:29 +00:00
Martin v. Löwis f5c7677602 Support bsddb 3.2. Fixes #483653. 2001-11-24 09:28:42 +00:00
Jack Jansen f49c6f9954 The import check in setup.py fails on Mac OS X for Carbon-based modules
if you are not building while logged in to the console (you cannot
connect to the window server, so the Carbon library doesn't initialize).
Added a quick hack to skip the import test, with a warning, for modules
linked against Carbon.
2001-11-01 14:44:15 +00:00
Jack Jansen 666b1e7e2f Link the core with CoreServices, not with Carbon, and don't use any Carbon
routines. As of 10.1 using Carbon will crash Python if no window server is
available (ssh connection, console mode, MacOSX Server). This fixes bug
#466907.

A result of this mod is that the default 8bit encoding on OSX is now ASCII,
for the time being. Also, the extension modules that need the Carbon
framework now explicitly include it in setup.py.
2001-10-31 12:11:48 +00:00
Neil Schemenauer c3ffef6666 - Build dbm module using libdb1 if it's available. This fixes SF bug "[
#230075 ] dbmmodule build fails on Debian GNU/Linux unstable (Sid)".

- Build bsddb module with libdb3 if it's available.  It also fixes a bug that
  causes the build of bsddb to fail on Debian if bsddb3-dev is installed.
2001-10-21 22:14:44 +00:00
Jeremy Hylton a25d995ab0 The Python symtable module depends on .h files that setup.py doesn't track. 2001-10-17 13:46:44 +00:00
Fred Drake 3a40f32aa6 Add entry for HotShot. 2001-10-12 21:00:48 +00:00
Martin v. Löwis 2f20dab9c1 Do not add -shared to linker_so. Any necessary options should already be
in LDSHARED.
2001-10-08 13:18:37 +00:00
Greg Ward 57fc21018f Fix a spelling error that has been bugging me for longer than I care to admit. 2001-10-03 19:59:30 +00:00
Andrew M. Kuchling 89fb72dd76 [Patch #462258] On Cygwin, don't build Tkinter unless the X header files
can be found.
2001-09-18 20:32:13 +00:00
Andrew M. Kuchling fda3c3ddae [Patch #462255, from Jason Tishler] Re-enables building the resouce
module on the Cygwin platform.
2001-09-17 16:19:16 +00:00
Greg Ward 02fac83ba1 Comment tweak: point to Robin Dunn's pybsddb project on SourceForge. 2001-09-13 15:05:08 +00:00
Jack Jansen 2f760c35e2 On MacOSX built the toolbox extension modules iff we're building with
--enable-framework.
Some modules that are also useful outside a fullblown application are
always built.
2001-09-04 21:33:12 +00:00
Jack Jansen 4ca5f38f46 Disabled _curses modules on MacOSX. The curses version is a 1994 BSD
curses, far too old for _cursesmodule.c.
2001-09-04 09:05:11 +00:00
Barry Warsaw 60f018846d Merge changes from r22a2-branch back into trunk. Also, change patch
level to 2.2a2+
2001-08-22 19:24:42 +00:00
Skip Montanaro e81f447800 This is supposed to help configure better sort out the various libdb
incarnations.  It's probably not quite sufficient, but should be better than
the status quo...
2001-08-21 04:23:21 +00:00
Martin v. Löwis 339d0f720e Patch #445762: Support --disable-unicode
- Do not compile unicodeobject, unicodectype, and unicodedata if Unicode is disabled
- check for Py_USING_UNICODE in all places that use Unicode functions
- disables unicode literals, and the builtin functions
- add the types.StringTypes list
- remove Unicode literals from most tests.
2001-08-17 18:39:25 +00:00
Andrew M. Kuchling 5aa3c4af76 Link readline module with ncurses in preference to termcap. [Bug ##441580]
Remove pointless comment
2001-08-16 20:30:18 +00:00
Jack Jansen df82e58cd5 On OSX we should not pass the -shared option to ld: it make the build
of audioop and cmath fail. Removing it seems to have no adverse consequences.

Closes bug #450510.
2001-08-15 13:17:45 +00:00
Martin v. Löwis 3e4b0e800b Get OPT from the environment to build the CCSHARED command.
Fixes the problem reported in bug #438786.
2001-08-10 08:56:17 +00:00
Jack Jansen 194e13c945 Commented out most of the MacPython modules. There is a discussion on the
pythonmac-sig about turning this all into a package, so in the mean time
there is no reason to scribble all over people's disks. Interested parties
can uncomment them.
2001-08-08 00:36:53 +00:00
Jack Jansen 144ebcc444 Replace moddir and incdir by
moddirlist and incdirlist, lists of source and include
directories that are searched for modules.
This is needed because the Mac modules and include files
live in the Mac subtree.

In addition (and that's actually what the mod is all about) on OSX we build all the Mac extension modules.
2001-08-05 22:31:19 +00:00
Tim Peters 76f373d081 Repair more now-obsolete references to config.h. 2001-07-26 21:34:59 +00:00
Martin v. Löwis 3db5b8cc76 Patch #443669: Permit _tkinter to build on cygwin32. 2001-07-24 06:54:01 +00:00
Andrew M. Kuchling 9eb27a89d8 Fix bug #437487: "2.1 build on Solaris fails if CC is set"
by adding the contents of CCSHARED to the compiler specified by CC
2001-07-14 20:28:10 +00:00
Andrew M. Kuchling 6268669612 Patch #411055 from MvL: import each extension after building it, and
delete ones that can't be imported due to missing symbols or other
    causes.
2001-05-21 20:48:09 +00:00
Andrew M. Kuchling 185bd6fc76 Trim out some cruft 2001-05-21 20:44:48 +00:00
Andrew M. Kuchling f52d27e52d Fix bug #232619: fix misleading warning on installing to lib-dynload 2001-05-21 20:29:27 +00:00
Guido van Rossum e697091c45 Patch by Mark Favas to ensure that the zlib we find is 1.1.3 or
later.  This assumes that zlib.h has a line of the form

    #define ZLIB_VERSION "1.1.3"

This solves the problem where a zlib installation is found but it is
an older version -- this would break the build, while a better
solution is to simply ignore that zlib installation.
2001-04-15 15:16:12 +00:00
Martin v. Löwis b1d196927a Remove Tix detection from Tkinter part; lib-tk/Tix attempts to load Tix
by requiring it. Also remove commentary from Setup.dist about commenting
in and out stuff.
2001-03-21 07:44:53 +00:00
Andrew M. Kuchling 9b5abcd48c Tidy up the ordering of include and library directories, putting
/usr/local first and leaving /usr/include at the end.  This addresses
    the comments in bug #232609.
2001-03-17 16:56:35 +00:00
Andrew M. Kuchling 5dfa13719f Disable the dl module 2001-03-02 06:24:14 +00:00
Andrew M. Kuchling 3da989c6bc Fix for bug #405007: prefix subdir to scripts in order to build in
a subdirectory.
2001-02-28 22:49:26 +00:00
Andrew M. Kuchling aece4270b1 Install the pydoc script 2001-02-28 20:56:49 +00:00
Andrew M. Kuchling b69c758f3b Fix for bug #404875: fix typo in setup.py 2001-02-28 19:49:57 +00:00
Andrew M. Kuchling 6efc6e7832 Patch #404680: disables the nis module and enables the dl module when
building under Cygwin.  Makes some fixes to the dlmodule in order to
    compile with Cygwin.
2001-02-27 20:54:23 +00:00
Andrew M. Kuchling 8d7f0869ee Patch #103899: Don't compile modules configured in Setup. This seems much
simpler than adding a bazillion switches, but means that the makesetup
    method probably can't ever go away completely.  Oh well...
2001-02-23 16:32:32 +00:00
Andrew M. Kuchling e06337a928 Patch #103937: Attempt to get the BSDDB autodetection right (or at least
less wrong)
2001-02-23 16:27:48 +00:00
Andrew M. Kuchling cf393f3fd9 Patch #103544: always compile the dl and nis modules on Unix; let's see
where they break.
2001-02-21 02:38:24 +00:00
Andrew M. Kuchling 3c044942ab BeOS doesn't have a libm.a, either; noted by Donn Cave 2001-02-06 23:37:23 +00:00
Andrew M. Kuchling 3cbdbfbf9c Part of patch #103544: fix detection of BSDDB on BSD systems 2001-02-06 22:26:30 +00:00
Andrew M. Kuchling 9a3fd8c82f Patch #103578 ] _tkinter build fix for he current Debian unstable tcl/tk 8.3
packages
2001-02-06 22:15:27 +00:00
Tim Peters d66595fe42 Renamed _testXXX to _testcapiXXX. Jack is my hero -- good call! 2001-02-04 03:09:53 +00:00
Jeremy Hylton 5e7cb240af Add minimal interface to symtable: _symtable module. 2001-02-02 18:24:26 +00:00
Marc-André Lemburg 261b8e26f1 Whitespace correction... 2001-02-02 12:12:44 +00:00
Marc-André Lemburg bc7cbcbc8f Added new Python C API _test module to the build mechanism on Unix. 2001-02-02 12:07:22 +00:00
Fred Drake 2de7471d69 Add entries for the weakref module to the build control. 2001-02-01 05:26:54 +00:00
Andrew M. Kuchling 66012fe889 Remove unused import of 'string'
Add header comment and __version__
2001-01-26 21:56:58 +00:00
Marc-André Lemburg 2efc3238d7 Be extra careful with linking against libtermcap. This is now only done
if we can find the libtermcap in the usual places. Some platforms don't
have libtermcap, e.g. MacOSX.
2001-01-26 18:23:02 +00:00
Marc-André Lemburg 7c6fcda7bf Fixed setup.py to allow:
1. skipping of extensions which cause an error (a warning message
   is written to stdout, but the build process no longer fails
   completely)

2. the readline extension to compile on SuSE Linux (and probably
   other platforms too) by adding /usr/lib/termcap to the library search
   path
2001-01-26 18:03:24 +00:00
Neil Schemenauer 726b78ecb8 Patch from Andrew to properly set module source directory. 2001-01-24 17:18:21 +00:00
Fredrik Lundh ade711a5c3 the ucnhash module is no longer used 2001-01-24 08:00:28 +00:00
Andrew M. Kuchling 34febf5e92 Modified version of part of patch #102409 for Cygwin:
Get platform-specific modules right on Cygwin
   Getting a string value for the platform has been factored out into
   get_platform()
2001-01-24 03:31:07 +00:00
Andrew M. Kuchling 5ddb25f36f Fix for MacOS X/Darwin: it doesn't need -lm, ever. (Noted by Steven Majewski) 2001-01-23 22:21:11 +00:00
Marc-André Lemburg 14970bea8f unicodedatabase.c is no longer needed thanks to Fredrik's patches. 2001-01-22 10:38:27 +00:00
Martin v. Löwis 1ab29b2d3c Check for None to decide when pyexpat should not be built. 2001-01-21 10:54:52 +00:00
Andrew M. Kuchling e7c87327b3 GvR pointed out the correct way to check for statically built modules;
sys.builtin_module_names
Add SSL directories in /usr/contrib/ for FreeBSD
2001-01-19 16:58:21 +00:00
Andrew M. Kuchling e3d6e41d81 Revert a single line of my large change earlier today; this broke the ability
to build in a subdirectory.  The additional directory is unfortunately
    redundant when *not* building in a subdirectory, which is why I took
    it out.
2001-01-19 02:50:34 +00:00
Andrew M. Kuchling 5bbc7b9283 Patch from Barry: gets rid of two unused imports,
wraps to 80chars, and adds some really hacky setting of compiler
   options when CC and LDSHARED are given on the make command line.
   (The Distutils should probably provide a utility function to
    automatically handle a number of common environment variables)
2001-01-18 20:39:34 +00:00
Andrew M. Kuchling fbe73769a4 Sizable reorganization of how header and library files are found
Check additional include directories for SSL
Don't build modules that are linked into the Python binary statically
Factored out the detection of Tkinter out into a method, since it's
    the most complicated module to set up
Simplify the logic for detecting Tkinter
2001-01-18 18:44:20 +00:00
Andrew M. Kuchling 6425efe9ae The signal module has to be compiled statically, so add it to Setup.dist
and remove support for it from setup.py
2001-01-17 22:17:16 +00:00
Neil Schemenauer e7e2ece979 - compile struct module
- get version number from sys.version_info
2001-01-17 21:58:00 +00:00
Andrew M. Kuchling a99202a017 Fix for bug #129173, reported by Skip Montanaro:
Check for the two possible headers for Expat, expat.h and xmlparse.h,
   and only compile the pyexpat module if one of them is found.
2001-01-17 20:51:18 +00:00
Andrew M. Kuchling 4f9e9432a8 Use the extended library search path when looking for readline (simple
oversight in using self.compiler.library_dirs)
2001-01-17 20:20:44 +00:00
Andrew M. Kuchling d5c43065d5 Various clean-ups:
* Uncomment the xreadlines module
  * The Tcl/Tk detection code doesn't need to worry about pre-8.0 versions
  * Fix some debugging changes (not running ar, a commented-out line)
2001-01-17 15:59:25 +00:00
Andrew M. Kuchling 00e0f21be8 [Patch #102588/PEP 229]:
Check in the setup.py script, and the setup.cfg.in file, which
   handle compiling and installing as many extension modules as possible
2001-01-17 15:23:23 +00:00