Where to find Python Makefile so can change file lookup

This is the place for queries that don't fit in any of the other categories.

Where to find Python Makefile so can change file lookup

Postby RedEyedDog1 » Sat Oct 12, 2013 7:56 pm

Hi i need to find the Makefile that python uses to build an application.

I'm trying to build cx_freeze. I'm not 100% i've installed python3.3 correctly.

when i try to build setup.py i get the error "cannot find -lpython3.3".

I've looked around and found that i need to change the search path in one of the Makefiles.

it needs to point to lpython3.3m instead. Ive looked in usr/loval/lib/python/config-3.3m and i cant find anywhere that mentions it?

I've also looked in downloads/python3.3 and no mention in that Makefile either. Can this folder be deleted now, i presume its installed everything so wont need it?

Thanks in advance :)
RedEyedDog1
 
Posts: 17
Joined: Thu Oct 10, 2013 11:21 am

Re: Where to find Python Makefile so can change file lookup

Postby casevh » Sun Oct 13, 2013 12:11 am

The problem is in the setup.py file distributed by cx_freeze. The error is on line 81. Try changing

Code: Select all
libraries.append("python%s.%s" % sys.version_info[:2])


to

Code: Select all
libraries.append("python%s.%sm" % sys.version_info[:2])


This change will break cx_freeze on older (prior to 3.1) versions of Python. A better fix would be to check the version and choose the correct library name automatically.

casevh
casevh
 
Posts: 70
Joined: Sat Feb 09, 2013 7:35 am

Re: Where to find Python Makefile so can change file lookup

Postby RedEyedDog1 » Sun Oct 13, 2013 1:45 pm

Hi thanks so much that worked :) i should of guessed it was in there but i was searching around and everything was pointing to the make files for python.
RedEyedDog1
 
Posts: 17
Joined: Thu Oct 10, 2013 11:21 am


Return to General Coding Help

Who is online

Users browsing this forum: Bing [Bot] and 2 guests