• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Locating frameworks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Locating frameworks


  • Subject: Locating frameworks
  • From: F van der Meeren <email@hidden>
  • Date: Tue, 15 Jun 2010 15:02:49 +0200

Hi,

I am trying to link to the Python.framework.
According to the manpages the framework directories are searched in the following order:
"The default framework search path is /Library/Frameworks then /System/Library/Frameworks."

Running my code:

Py_Initialize();
PyRun_SimpleString("import sys\n"
             "print('Version: ', sys.version)\n");
Py_Finalize();

Shows the following:
('Version: ', '2.6.1 (r261:67515, Feb 11 2010, 00:51:29) \n[GCC 4.2.1 (Apple Inc. build 5646)]')

But I have Python 3.1.2 installed in the /Library/Frameworks path, shouldn't this library be used and result in the following version info ?
'3.1.2 (r312:79360M, Mar 24 2010, 01:33:18) \n[GCC 4.0.1 (Apple Inc. build 5493)]'

So my question is the following: How do I force the linking with the Python 3.1.2 version (or highest version installed)?

Thanks,

Filip
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: can't debug safari plugin when using 64 bit
  • Next by Date: Re: Executables representing target products
  • Previous by thread: (no subject)
  • Next by thread: Debugging: How to log callstack when a breakpoint is hit?
  • Index(es):
    • Date
    • Thread