From: Richard P. <ric...@ba...> - 2012-02-28 12:05:22
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Having noticed lately (in oi_151a2) that some python packages have been update, notably numpy (/usr/lib/python2.6/vendor-packages/numpy/__init__.py is at 1.4.1) in SFE currently both numpy and matplotlib are python2.4 based and are older versions... managed to build matplotlib based upon http://www-irma.u-strasbg.fr/irmawiki/index.php/Installation_de_numpy_et_matplotlib_sur_Solaris_x86 ended up with: ~/src/matplotlib$ svn diff Index: src/cntr.c =================================================================== - --- src/cntr.c (revision 8989) +++ src/cntr.c (working copy) @@ -1366,8 +1366,8 @@ int maxnsegs = npts/2 + 1; /* allocate maximum possible size--gross overkill */ - - i0 = malloc(maxnsegs * sizeof(int)); - - i1 = malloc(maxnsegs * sizeof(int)); + i0 = (int *)malloc(maxnsegs * sizeof(int)); + i1 = (int *)malloc(maxnsegs * sizeof(int)); /* Find the segments. */ iseg = 0; @@ -1400,7 +1400,7 @@ /* Find the subpaths as sets of connected segments. */ - - subp = malloc(nsegs * sizeof(int)); + subp = (int *)malloc(nsegs * sizeof(int)); for (i=0; i<nsegs; i++) subp[i] = -1; nsp = 0; Index: src/_backend_gdk.c =================================================================== - --- src/_backend_gdk.c (revision 8989) +++ src/_backend_gdk.c (working copy) @@ -52,6 +52,7 @@ { NULL, NULL, 0 } }; +extern "C" DL_EXPORT(void) init_backend_gdk(void) { Index: setupext.py =================================================================== - --- setupext.py (revision 8989) +++ setupext.py (working copy) @@ -242,6 +242,8 @@ win32_compiler = get_win32_compiler() if sys.platform == 'win32' and win32_compiler == 'msvc': std_libs = [] +elif sys.platform == 'sunos5': + std_libs = ['Crun', 'Cstd'] else: std_libs = ['stdc++', 'm'] @@ -325,6 +327,7 @@ basedirs = module.include_dirs[:] # copy the list to avoid inf loop! for d in basedirs: module.include_dirs.append(os.path.join(d, 'freetype2')) + module.include_dirs.append('/usr/include') print_status("freetype2", get_pkgconfig_version('freetype2')) if not find_include_file(module.include_dirs, 'ft2build.h'): It'd be nice to get fully cleaned up and put back into SFE, who is maintaining the python bits? -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (SunOS) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPTLgLAAoJECAB22fHtp27HE4H/jATt6yuP2qG82P3B1Yu+SIm nsxU2w1SWRLrzIb/Vi4teBfoJRXrXt6UxgDP1JTraj5lE+MTHDsxvv9CPNHTwUGV IgKIorEW9FIWVSy1N08s3Wxq1tOJNr8MbCyFxQF2UyOKbvLjApyZq/OVESt1M+W1 hHmqcnre2KNoFJ2Cd9OZl55q7Q0gV9yxTXZbZPysKGZ+TIDl32HixiBWosYBw38v lxhgw/FxrqKUFpGc13fwYwn/+Zeul1AamU7n4xXN5F81lt5eC8PNSjhdzR8qByCh KF42KoRrsAAdbehJIt9AbHAzH1k8NRxR8aAvfmUxP7nddFRzfvHyWrM+AObnakQ= =tfum -----END PGP SIGNATURE----- |