Staging
v0.8.1
https://github.com/python/cpython
Revision 0d2cceb01ca2d285aafcf92ad6a9dfcc61f4d722 authored by Ronald Oussoren on 08 June 2009, 21:04:41 UTC, committed by Ronald Oussoren on 08 June 2009, 21:04:41 UTC
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73303 | ronald.oussoren | 2009-06-08 13:54:59 -0700 (Mon, 08 Jun 2009) | 11 lines

  This checkin adds a symlink to the lib directory of a framework install
  of Python (on OSX), and the end result of that is that the combination of
  ``python-config --ldflags`` and ``python-config --libs`` refers to an actually
  existing location.

  I've done this in preference to changing python-config to specify
  '-framework Python' for linking because that doesn't work when you have multiple
  versions of python installed (because '-framework Python' will always link to
  the 'Current' version of the framework, without a possibility to specify a
  specific version).
........
1 parent 10e0e30
Raw File
Tip revision: 0d2cceb01ca2d285aafcf92ad6a9dfcc61f4d722 authored by Ronald Oussoren on 08 June 2009, 21:04:41 UTC
Merged revisions 73303 via svnmerge from
Tip revision: 0d2cceb
dynload_dl.c

/* Support for dynamic loading of extension modules */

#include "dl.h"

#include "Python.h"
#include "importdl.h"


extern char *Py_GetProgramName(void);

const struct filedescr _PyImport_DynLoadFiletab[] = {
	{".o", "rb", C_EXTENSION},
	{"module.o", "rb", C_EXTENSION},
	{0, 0}
};


dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
				    const char *pathname, FILE *fp)
{
	char funcname[258];

	PyOS_snprintf(funcname, sizeof(funcname), "PyInit_%.200s", shortname);
	return dl_loadmod(Py_GetProgramName(), pathname, funcname);
}
back to top