summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
Commit message (Collapse)AuthorAgeFilesLines
* Acknowledge the existence of the 'platform' file, generated by theGuido van Rossum2001-06-061-1/+1
| | | | | Makefile and used by the setup.py script. Ignore it in .cvsignore; remove it in "make clobber".
* Separate CFLAGS and CPPFLAGS. CFLAGS should not contain preprocessorNeil Schemenauer2001-06-021-5/+7
| | | | directives, which is the role of CPPFLAGS. Closes SF patch #414991.
* Iterators phase 1. This comprises:Guido van Rossum2001-04-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | new slot tp_iter in type object, plus new flag Py_TPFLAGS_HAVE_ITER new C API PyObject_GetIter(), calls tp_iter new builtin iter(), with two forms: iter(obj), and iter(function, sentinel) new internal object types iterobject and calliterobject new exception StopIteration new opcodes for "for" loops, GET_ITER and FOR_ITER (also supported by dis.py) new magic number for .pyc files new special method for instances: __iter__() returns an iterator iteration over dictionaries: "for x in dict" iterates over the keys iteration over files: "for x in file" iterates over lines TODO: documentation test suite decide whether to use a different way to spell iter(function, sentinal) decide whether "for key in dict" is a good idea use iterators in map/filter/reduce, min/max, and elsewhere (in/not in?) speed tuning (make next() a slot tp_next???)
* Fix compileall.py so that it fails on SyntaxErrorsJeremy Hylton2001-04-181-2/+3
| | | | | | | | | | | | | | | | The changes cause compilation failures in any file in the Python installation lib directory to cause the install to fail. It looks like compileall.py intended to behave this way, but a change to py_compile.py and a separate bug defeated it. Fixes SF bug #412436 This change affects the test suite, which contains several files that contain intentional errors. The solution is to extend compileall.py with the ability to skip compilation of selected files. NB compileall.py is changed so that compile_dir() returns success only if all recursive calls to compile_dir() also check success.
* Remove shared libraries as part of "make clean" rather than in "makeGuido van Rossum2001-04-141-1/+2
| | | | | clobber". This is done so that after a "make clean", setup.py will also recompile all extensions.
* Unixware 7 support by Billy G. Allie (SF patch 413011)Guido van Rossum2001-04-111-1/+4
|
* Use INSTALL_SCRIPT to install script files. INSTALL_PROGRAM may try toNeil Schemenauer2001-04-101-10/+11
| | | | strip them. Closes patch #406287.
* Make on Alpha Tru64 5.1 (as installed on the SF compile farm) doesn'tGuido van Rossum2001-04-091-1/+1
| | | | | | think that a command starting with '#' is a comment, so move the one comment in such a position (in the rule for building $(LIBRARY)) to a harmless position.
* - Remove WITH makefile variable. Its not used for anything.Neil Schemenauer2001-03-221-13/+4
| | | | | | - Add CONFIG_ARGS variable and use it to re-run configure rather than using config.status. This prevents an infinite loop if configure dies while re-configuring.
* Install the Python DLL with execute priviledge set. This is required forNeil Schemenauer2001-03-161-1/+1
| | | | | Cygwin Python to startup correctly when in ntsec mode. Cygwin operating in this mode is probably not the only system with this requirement.
* Move all knowledge that $(MAINOBJ) is built in the Modules/ directoryFred Drake2001-03-061-4/+5
| | | | | | | | into Makefile.pre.in; the configure script will only determine the basename of the file. This fixes installation of a Python built using C++, reported by Greg Wilson.
* Added `memtest' target which excludes the quicktest modules plusBarry Warsaw2001-03-031-0/+7
| | | | | test_dl, test___all__, test_fork1, and test_longexp. All these either take way too long with Insure or crash it.
* UseGuido van Rossum2001-03-011-2/+2
| | | | | | | | find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f to remove all .py[co] files before testing, rather than just those in the Lib/test directory. "find" is used all over the Makefile so I suppose it's safe; how about xargs?
* Improved __future__ parser; still more to doJeremy Hylton2001-02-271-0/+1
| | | | | | | | | | | | | | | Makefile.pre.in: add target future.o Include/compile.h: define PyFutureFeaters and PyNode_Future() add c_future slot to struct compiling Include/symtable.h: add st_future slot to struct symtable Python/future.c: implementation of PyNode_Future() Python/compile.c: use PyNode_Future() for nested_scopes support Python/symtable.c: include compile.h to pick up PyFutureFeatures decl
* Change EXEEXT back to EXE in the Makefile. Other tools may depend on the name.Neil Schemenauer2001-02-271-8/+8
| | | | | The name in configure is still EXEEXT because that's what autoconf calls it. Also, replace a few occurrences of "python" with "$(PYTHON)".
* Add Vladimir Marangozov's object allocator. It is disabled by default. ThisNeil Schemenauer2001-02-271-0/+1
| | | | closes SF patch #401229.
* Add missing dependents of graminit.h.Neil Schemenauer2001-02-271-0/+2
|
* Generate grammar source files in srcdir. Ignore the error if they cannotNeil Schemenauer2001-02-271-3/+3
| | | | be created (perhaps the source directory is read-only).
* Fix bug in clean target (closes SF patch 103864 and bug 132879). The clobberNeil Schemenauer2001-02-191-10/+4
| | | | target now removes some configure files (like it did before).
* Set PYTHONPATH when running setup.py in order to override any ambientAndrew M. Kuchling2001-02-171-2/+2
| | | | | | value for it, as suggested in bug #129854. This prevents an old PYTHONPATH confusing setup.py (say, if it results in Python finding an old version of the Distutils)
* Remove confusing explaination about altinstall target and refer toNeil Schemenauer2001-02-161-15/+2
| | | | the README file.
* Build grammar files in their proper place rather than moving them. This shouldNeil Schemenauer2001-02-161-5/+3
| | | | allow building with a read-only source tree (although I haven't tried it).
* Simplify linking on BeOS. Rename some files. Closes SF patch #103679.Neil Schemenauer2001-02-161-9/+8
|
* Specify directory permissions properly. Closes SF patch #103717.Neil Schemenauer2001-02-101-7/+7
|
* Relax the rules for using 'from ... import *' and exec in the presenceJeremy Hylton2001-02-091-0/+1
| | | | | | | | | | | | | | | | | | | of nested functions. Either is allowed in a function if it contains no defs or lambdas or the defs and lambdas it contains have no free variables. If a function is itself nested and has free variables, either is illegal. Revise the symtable to use a PySymtableEntryObject, which holds all the revelent information for a scope, rather than using a bunch of st_cur_XXX pointers in the symtable struct. The changes simplify the internal management of the current symtable scope and of the stack. Added new C source file: Python/symtable.c. (Does the Windows build process need to be updated?) As part of these changes, the initial _symtable module interface introduced in 2.1a2 is replaced. A dictionary of PySymtableEntryObjects are returned.
* Install shared modules enabled by Setup* in $(DESTSHARED) notNeil Schemenauer2001-02-061-3/+4
| | | | $(DESTSHARED)/Modules.
* Tweak clean targets yet again.Neil Schemenauer2001-02-031-15/+12
|
* add compile.h and symtable.h to list of header filesJeremy Hylton2001-02-021-0/+2
|
* Undo recent exclusion of test_fork1 and test_zlib. These tests don'tJeremy Hylton2001-02-021-1/+1
| | | | | | trigger my arbitrary exlusion rule, which is: takes more than 10 seconds of wall clock time on my machine. If these tests are going to be skipped, then a boatload of slower tests should be skipped, too.
* Added fork1, linuxaudiodev, sunaudiodev, and zlib to the tests skippedFred Drake2001-02-021-1/+2
| | | | by the quicktest target.
* add quicktest target -- runs test suite except for the eight slowest testsJeremy Hylton2001-02-011-0/+7
|
* Restore the automatic use of the oldsharedmods and oldsharedinstall targetsAndrew M. Kuchling2001-01-291-2/+3
|
* Don't use $< in normal make rules: it's not portable. Using $< inSjoerd Mullender2001-01-291-6/+6
| | | | inference rules (e.g. .c.o) is fine.
* - Fix buildno dependencies (I hope).Neil Schemenauer2001-01-271-9/+17
| | | | - Change one last EXE to EXEEXT.
* Remaining single-line change from patch #102409: to install shared modules,Andrew M. Kuchling2001-01-261-16/+10
| | | | | | | | | | | run setup.py with the --install-platlib flag so you can override 'prefix' when running make (e.g. make prefix=/tmp/python/usr/local install) Instead of using mkdir to create directories, use install -d (mkdir -p apparently isn't portable) Emacs make-mode reported line 371 as suspicious; removed the whitespace from that line.
* - Add CFLAGSFORSHARED variable. configure sets this to CCSHARED if LDLIBRARYNeil Schemenauer2001-01-261-32/+25
| | | | | | is a shared library. - Add PY_CFLAGS variable (flags used to compile the interpreter) - clobber now just removes object files, libraries and binaries
* Make module objects from Setup depend on Python.h headers.Neil Schemenauer2001-01-251-2/+4
|
* PEP 227 implementationJeremy Hylton2001-01-251-0/+1
| | | | | | A cell contains a reference to a single PyObject. It could be implemented as a mutable, one-element sequence, but the separate type has less overhead.
* Flat makefile based on toplevel Makefile.in and makefiles in buildNeil Schemenauer2001-01-241-0/+814
subdirectories. Those other makefiles will go away eventually.