pkgsrc/x11/py-sip/patches/patch-aa
wiz bbf22e6027 Update to 4.8:
SIP v4.8 has been released. The highlights of this release include
support for Python v3, the ability to supply alternate super-types
and meta-types for wrapped objects, and documentation built using
Sphinx.

The major new features are:

  * support for Python v3
  * the %BIGetBufferCode and %BIReleaseBufferCode to
    support the buffer interface of Python v3
  * the %DefaultMetatype directive and the
    /Metatype/ class annotation to allow the
    meta-type of a wrapped type to be changed
  * the %DefaultSupertype directive and the
    /Supertype/ class annotation to allow the
    super-type of a wrapped type to be changed
  * the sip.simplewrapper type to be used as a
    super-type for wrapped types that don't take
    part in parent/child relationships
  * the %InitialisationCode directive
  * the /KeepReference/ argument annotation
  * the /Encoding/ argument, function, typedef and
    variable annotation
  * super() now works as expected with wrapped types
  * support for __floordiv__, __ifloordiv__,
    __truediv__, __itruediv__ and __index__
  * __bool__ is a synonym for __nonzero__
  * Sphinx is now used for the documentation
  * many additions and deprecations in the API to
    eliminate the differences between classes and
    mapped types. (See the documentation for the
    details.)
2009-06-09 13:51:57 +00:00

31 lines
1.3 KiB
Text

$NetBSD: patch-aa,v 1.2 2009/06/09 13:51:57 wiz Exp $
--- configure.py.orig 2009-06-05 08:59:07.000000000 +0000
+++ configure.py
@@ -198,7 +198,7 @@ def set_platform_directories():
plat_py_lib_dir = lib_dir + "/config"
plat_bin_dir = sys.exec_prefix + "/bin"
- plat_sip_dir = sys.prefix + "/share/sip"
+ plat_sip_dir = sys.prefix + "/share/sip%s" % sys.version[0:3]
def create_config(module, template, macros):
@@ -216,7 +216,7 @@ def create_config(module, template, macr
"sip_version": sip_version,
"sip_version_str": sip_version_str,
"platform": opts.platform,
- "sip_bin": os.path.join(opts.sipbindir, "sip"),
+ "sip_bin": os.path.join(opts.sipbindir, "sip%s" % sys.version[0:3]),
"sip_inc_dir": opts.sipincdir,
"sip_mod_dir": opts.sipmoddir,
"default_bin_dir": plat_bin_dir,
@@ -249,7 +249,7 @@ def create_makefiles(macros):
sipconfig.ParentMakefile(
configuration=cfg,
subdirs=["sipgen", "siplib"],
- installs=(["sipconfig.py", "sipdistutils.py"], cfg.sip_mod_dir)
+ installs=(["sipconfig.py", "sipconfig.pyc", "sipdistutils.py"], cfg.sip_mod_dir)
).generate()
sipconfig.inform("Creating sip code generator Makefile...")