Commit graph

10 commits

Author SHA1 Message Date
Peter Johnson
fcb228f18c Use Cython instead of Pyrex.
svn path=/trunk/yasm/; revision=2256
2010-01-01 20:55:07 +00:00
Peter Johnson
65b18427f4 Unbreak python bindings on 64-bit Linux.
svn path=/trunk/yasm/; revision=2252
2009-12-30 06:21:24 +00:00
Peter Johnson
0c344700a7 Massive Python/Pyrex wrapper cleanup. We now use Pyxelator to generate
the C function and data structure wrappers for Pyrex.  We now require
Pyrex 0.9.5 to build the Python wrappers, as only >=0.9.5 has working
weakref support.  We actually need 0.9.5.1, but it's not yet released
(0.9.5 has a crash bug in enum wrapping that we trigger).

Pyxelator works a lot better with non-anonymous enums/structs, so libyasm
has been scrubbed for this.

Next step: full Yasm data structure inspection.

svn path=/trunk/yasm/; revision=1745
2007-01-29 03:32:37 +00:00
Peter Johnson
5c36a0551f * setup.py: strip() opts["srcdir"] to unbreak distcheck.
svn path=/trunk/yasm/; revision=1462
2006-04-05 05:36:06 +00:00
Peter Johnson
56496896e0 * setup.py: Incorporate cleanups suggested by Michael Urman.
svn path=/trunk/yasm/; revision=1461
2006-04-05 03:37:46 +00:00
Peter Johnson
a79593f923 Quiet warnings in Pyrex code by adding "-w" if GCC detected.
* configure.ac: Pass GCC value to Makefile
* Makefile.inc: Pass GCC value to python-setup.txt
* setup.py: Check GCC value and append -w if necessary.

svn path=/trunk/yasm/; revision=1460
2006-04-05 02:26:19 +00:00
Peter Johnson
949965d5cb * pyrex.m4: Add a little documentation.
* setup.py, yasm.pyx, *.pxi: Add copyright/license.

svn path=/trunk/yasm/; revision=1458
2006-04-04 08:06:39 +00:00
Peter Johnson
a5d91fba6a Hook Python module into the build (even though it's pretty incomplete),
enabled with --enable-python (defaults to auto-detect).

Thanks to some magic in python-yasm/Makefile.inc and setup.py, this actually
plays nicely with automake distcheck.

* m4/pythonhead.m4: Script to find Python.h.
* m4/Makefile.inc: Include it in distfiles.
* configure.ac: Add --enable-python option and Python and Pyrex detection.
* tools/Makefile.inc: Pull tools/python-yasm/Makefile.inc into build.
* python-yasm/Makefile.inc: Add automake build magic for extension.
* setup.py: Likewise.

svn path=/trunk/yasm/; revision=1456
2006-04-04 06:07:32 +00:00
Peter Johnson
5f284d738c python-yasm: Modularize and clean up. Note the modularization is a little
bit broken: you need to remove yasm.c before running python setup.py build
or the pyrex step may not actually run.

svn path=/trunk/yasm/; revision=1450
2006-04-03 04:32:25 +00:00
Michael Urman
02eb686f36 Checkin of initial work on a pyrex python binding for yasm. Very little
works so far. Build it with the command {{{python setup.py build}}}, and
optionally symlink to the built yasm.so to enable importing it from a
python started in the same directory.

svn path=/trunk/yasm/; revision=1449
2006-04-02 08:13:31 +00:00