summaryrefslogtreecommitdiffstats
path: root/dsextras.py
Commit message (Collapse)AuthorAgeFilesLines
* Add py_ssize_t_clean flag to be passed to codegen.SourceWriter.Cedric Gustin2006-10-051-3/+6
| | | | | | | 2006-10-05 Cedric Gustin <cedric.gustin@gmail.com> * dsextras.py (Template) (TemplateExtension): Add py_ssize_t_clean flag to be passed to codegen.SourceWriter.
* Catch ImportError exception when codegen is not available: disableCedric Gustin2006-09-211-44/+87
| | | | | | | | | | | | | | | | | | 2006-09-21 Cedric Gustin <cedric.gustin@gmail.com> * dsextras.py: Catch ImportError exception when codegen is not available: disable Template and TemplateExtension, redirect the user to the pygtk installer and raise a NameError exception. check_date has also been rewritten and now uses distutils.dep_util.newer_group(). defs files can also be built using createdefs by passing tuples as keyword argument to Template (see for example the gdk and gtk templates in setup.py). * setup.py: Changed the way the VERSION macro is defined on win32. Also install the html reference documentation, the xsl files and fixxref. * pygobject_postinstall.py: Set the value of DATADIR in fixxref.py. Add functions to install shortcuts in the Start menu to the reference manual (currently disabled: see bug #353849).
* Set datarootdir in .pc file.Cedric Gustin2006-06-281-0/+2
| | | | | | | | | | | | | | 2006-06-28 Cedric Gustin <cedric.gustin@gmail.com> * dsextras.py (InstallData): Set datarootdir in .pc file. * pygobject_postinstall.py (replace_prefix): Do not parse pygtk-codegen-2.0 as it is part of pygtk. * setup.py: Create gobject extension as gobject._gobject. Add pygoptioncontext.c and pygoptiongroup.c to the list of source files. Add option.py to the module files. Changed name of distutils package from pygtk to pygobject.
* Add compiler / linker flags from pkgconfig-2.0.pc by default, with anJohn Ehresman2006-04-181-0/+17
| | | | | | | | | | | 2006-04-18 John Ehresman <jpe@wingware.com> * dsextras.py: Add compiler / linker flags from pkgconfig-2.0.pc by default, with an override mechanism. Filter out -lc & -lm if compiling with msvc. * setup.py: Change C extension name to _gobject and don't use the pkgconfig-2.0.pc when compiling
* reindentJohan Dahlin2006-04-111-38/+35
|
* Add distutils supportJohan Dahlin2006-01-091-3/+10
| | | | | | * setup.py: Add distutils support * dsextras.py (get_m4_define): Check for configure.ac aswell.
* Pass GLOBAL_MACROS (in particular HAVE_PYCAIRO) to codegen DefsParser. IfCedric Gustin2006-01-041-2/+2
| | | | | | | | | 2006-01-04 Cedric Gustin <cedric.gustin@gmail.com> * dsextras.py (Template.generate): Pass GLOBAL_MACROS (in particular HAVE_PYCAIRO) to codegen DefsParser. * setup.py: If pangocairo is enabled, add pycairo to the list of packages required to build the GTK+ module. Also set HAVE_PYCAIRO.
* Update distutils for 2.7.x. Bump requirements. Fix a minor bug in ↵Johan Dahlin2005-08-241-28/+48
| | | | gobjectmodule.c
* Reviewed by: Johan Dahlin <johan@gnome.org>PYGTK_2_5_1Johan Dahlin2004-12-231-5/+34
| | | | | | | | | | | | | | | | Fixes #150616 * dsextras.py: Added InstallData class. Changed template options to ${prefix}/include|lib|bin|share. Added get_m4_define function to parse pygtk version strings in configure.in. * setup.py: Added pygtk_postinstall bdist_wininst option. distutils now uses InstallData as install_data class. pygtk-2.0.pc and pygtk-codegen-2.0 are installed as data instead of lib/extensions. This fixes a bdist_wininst installer on win32. * pygtk_postinstall.py: Initial release.
* Bug #110619:Naofumi Yasufuku2003-07-021-2/+41
| | | | | | | | | | | | | | | | | | | | | | | | | 2003-05-03 Naofumi Yasufuku <naofumi@yasufuku.net> Bug #110619: * dsextras.py (InstallLib.prepare): Fixed self.prefix initialization for win32. (BuildExt.init_extra_compile_args, BuildExt.build_extensions) (BuildExt.build_extension): On win32, add MinGW GCC option for MSVC compatible struct packing (gcc2: -fnative-struct, gcc3: -mms-bitfields). (BuildExt.modify_compiler, BuildExt.build_extensions): On win32, remove '-static' linker option to prevent MinGW ld from trying to link with MSVC import libraries. * setup.py: Changed list_files('codegen/*.py') to list_files(os.path.join('codegen', '*.py')) for win32. Fixed pygtk.h installation directory. 2003-07-02 James Henstridge <james@daa.com.au> * dsextras.py (pkgc_version_check): remove "self.", fixing bug 111002 (pointed out by Seth Nickell).
* Install dsextras.Johan Dahlin2003-04-291-2/+2
| | | | | | 2003-04-29 Johan Dahlin <jdahlin@async.com.br> * gtk/Makefile.am (pygtk_PYTHON): Install dsextras.
* Small typo.Johan Dahlin2003-02-271-1/+1
| | | | | | * dsextras.py (getstatusoutput): Small typo. * setup.py: Cut the doclines, to make the windows installer happy
* Added win32 support and some rearrangements. Largely based upon patch byJohan Dahlin2003-02-271-49/+72
| | | | | * setup.py, dsextras.py: Added win32 support and some rearrangements. Largely based upon patch by Cedric Gustin.
* Added.Johan Dahlin2003-02-081-6/+36
| | | | | | | | * pygtk-2.0.pc.in (codegendir): Added. * setup.py: Added Numeric and gtkgl support (gtkgl untested). * dsextras.py: Updated.
* Fix template bustage.Johan Dahlin2003-01-241-1/+1
| | | | * dsextras.py (InstallLib.add_template_option): Fix template bustage.
* Import codegen here instead, needs to be fixed in the future though.Johan Dahlin2003-01-211-4/+14
| | | | | | | * dsextras.py (Template.generate): Import codegen here instead, needs to be fixed in the future though. * Makefile.am (EXTRA_DIST): Added dsextras.py
* Splitted out from setup.py. It should be reusable for gnome-python andJohan Dahlin2003-01-211-0/+213
* dsextras.py: Splitted out from setup.py. It should be reusable for gnome-python and other extensions that uses pygtk. Fixes #103615