| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
by Michael Hudson <mwh21@cam.ac.uk>.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
'alias_options' table and getting rid of some hairy code in the
Distribution constructor.
Resurrected the distribution options that describe the modules present
in the module distribution ('py_modules', 'ext_modules'), and added
a bunch more: 'packages', 'package_dir', 'ext_package', 'include_dirs',
'install_path'.
Updated some comments.
Added 'warn()' method to Command.
'Command.get_command_name()' now stores generated command name in
self.command_name.
|
|
|
|
|
|
|
| |
Added global cache PATH_CREATED used by 'mkpath()' to ensure it doesn't
try to create the same path more than once in a session (and, more
importantly, to ensure that it doesn't print "creating X" more than
once for each X per session!).
|
|
|
|
| |
in dry-run mode.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
distributions their own directory (and .pth file).
Overhauled how we determine installation directories in
'set_final_options()' to separate platform-dependence and take
'install_path' option into account.
Added 'create_path_file()' to create path config file when 'install_path'
given.
Only run 'install_py' and 'install_ext' when, respectively, there are
some pure Python modules and some extension modules in the distribution.
|
|
|
|
| |
have extension modules.
|
|
|
|
|
|
|
|
|
|
| |
- rename 'dir' to 'build_dir'
- take 'package' from distribution option 'ext_package'
- take 'extensions' from distribution option 'ext_modules'
- take 'include_dirs' from distribution
Name keyword args explictly when calling CCompiler methods.
Overhauled how we generate extension filenames (in 'extension_filename()
and 'build_extension()') to take 'package' option into account.
|
|
|
|
| |
packages and searching for source files by 'package_dir'.
|
| |
|
|
|
|
|
|
|
| |
parser_ast2tuple(). Create an temporary empty dictionary to
use. Bug reported by Mark Favas <m.favas@per.dem.csiro.au>.
Fix a couple of comments.
|
| |
|
|
|
|
|
| |
and then (under certain circumstances) can clobber the default!
He also submitted this patch as PR#82.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Gertzfield <che@debian.org> (with minor changes).
(Should have been here instead of in the branch in the first place,
since these weren't in for the 1.5.2 release.)
|
|
|
|
|
|
|
|
| |
For a long time I've seen absurd tracebacks under -O (e.g., negative
line numbers), but very rarely. Since I was looking at tracebacks
anyway, thought I'd track it down. Turns out to be Guido's only
predictable blind spot <wink -- "char" is signed on some non-GvR
systems>. Patch follows.
|
|
|
|
|
|
| |
It breaks Mailman, it was actually documented in the docstring, so it
was an intentional deviation from the usual del semantics. Let's
document the original behavior in Doc/lib/librfc822.tex.
|
|
|
|
|
|
|
|
|
| |
the right variant of gethostbyname_r for us, since not all Linuxes are
equal in this respect. Reported by Laurent Pointal.
(2) On BeOS, Chris Herborth reports that instead of arpa/inet.h you
must include net/netdb.h to get the inet_ntoa() and inet_addr()
prototypes.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
module functions, to clarify that the import is not automatic.
Suggested by Koray Oner <Koray.Oner@Eng.Sun.COM>.
|
|
|
|
|
| |
so that pure Python modules are installed to the platform-specific
directory if there are any extension modules in this distribution.
|
|
|
|
|
|
| |
specific files; it was somewhat broken, and the comments were dead
wrong.
Now runs 'install_ext' command after 'install_py'.
|
|
|
|
| |
actual extension module to.
|
| |
|
|
|
|
| |
Default platform-specific build directory changed to 'build/platlib'.
|
|
|
|
|
| |
it doesn't recognize a lone dash as a non-flag argument.
Now it does.
|
|
|
|
|
|
| |
Changed those two methods to only compile/link if necessary (according
to simplistic timestamp checks).
Added 'output_dir' to 'object_filenames()' and 'shared_object_filename()'.
|
| |
|
|
|
|
|
|
| |
Terminology change in 'newer()'.
Made 'copy_tree' respect dry_run flag a little better.
Added 'move_file()'.
|
|
|
|
|
|
| |
signatures, and updated some docstrings to reflect it.
Some comments added.
Added 'announce()' and 'move_file()' methods.
|
|
|
|
|
|
| |
Error message tweak in Command.set_option().
Added Command.get_peer_option().
Added Command.move_file() wrapper.
|
|
|
|
| |
raise KeyError instead of failing silently!
|
| |
|
|
|
|
|
|
|
| |
much breakage (esp. in JPython which holds absolute path names in
co_filename already). This implementation uses os.path.abspath() as a
slightly better way to canonicalize path names. It implements a
cache.
|
|
|
|
|
|
| |
the file that a function is defined on. Non-portable to Windows and
JPython. Instead, new find_function() uses re module on a similar
(simple-minded) pattern.
|
|
|
|
|
| |
the proper function to call is inet_addr(). Since we already had code
to do that (for MS-Windows), this simplifies things a lot!
|
| |
|
|
|
|
|
|
|
|
|
| |
names match the documentation.
Removed broken code that supports the __methods__ attribute on ast
objects; the right magic was added to Py_FindMethod() since this was
originally written. <ast-object>.__methods__ now works, so dir() and
rlcompleter are happy.
|
| |
|
| |
|
|
|
|
|
|
| |
tracefunc (or profilefunc -- we're not sure which), zap the global
trace and profile funcs so that we can't get into recursive loop when
instantiating the resulting class based exception.
|
|
|
|
|
| |
we no longer explicitly pull distribution options out of our Distribution
object, but rather let the Distribution put them into the command object.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
attributes, etc. Biggest change was to the Distribution constructor
-- it now looks for an 'options' attribute, which contains values
(options) that are explicitly farmed out to the commands. Also,
certain options supplied to Distribution (ie. in the 'setup()' call in
setup.py) are now "command option aliases", meaning they are dropped
right into a certain command rather than being distribution options.
This is handled by a new Distribution class attribute,
'alias_options'.
Various comment changes to reflect the new way-of-thinking.
Added 'get_command_name()' method to Command -- was assuming its
existence all along as 'command_name()', so changed the code that
needs it to call 'get_command_name()'.
|
|
|
|
|
|
|
| |
Ditched redundant '_gen_preprocess_options()' and '_gen_lib_options()'
-- now provided by ccompiler.py.
Fixed some filename extension variables -- added missing period.
Cosmetic tweaks.
|
|
|
|
|
|
| |
now provided (minus the leading underscore) by the ccompiler module.
Fix 'compile()' to return the list of object files generated.
Cosmetic tweaks/delete cruft.
|