954,515 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

installing python package from src

I'm trying to build the package for use in Maya. Maya comes with its own python installation so the .exe installer for this package doesn't work for me.
the package is Polygon
I downloaded the zip. It contains:
setup.py
/src
/Polygon
and some other stuff
In cygwin I run:
./mayapy.exe "..\temp\Polygon-2.0.4\setup.py" build
and it says:
"error: package directory 'Polygon' does not exist"
First I read about how to install packages on the python website.
Then I tried putting the /Polygon folder in different places, like Maya's python's site-packages directory
I think in order to build the .c code I'll need to get mingw, but I cant even get past this first bit.
thanks!

dannyDaniweb
Newbie Poster
2 posts since Oct 2011
Reputation Points: 10
Solved Threads: 0
 

The normal procedure is to change directory to ..\temp\Polygon-2.0.4 in cygwin and type 'python setup.py install'.

Gribouillis
Posting Maven
Moderator
2,786 posts since Jul 2008
Reputation Points: 1,044
Solved Threads: 691
 

Cool, thanks, that worked.
I got it to compile but it errors out. its meant to be compiled 32bit, but Im using a 64bit python so I dont think thats going to work. Is there a work around for this?
thanks,

dannyDaniweb
Newbie Poster
2 posts since Oct 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: