3

I have just picked up Python to develop a tool and I am so far really enjoying the language, however have one issue I am not entirely sure how to solve.

I am looking to use a few external libraries in my project, at the moment cherryPy and Cheetah however I am not sure how to package up my application so that these libraries are included. Coming from a .NET world the compiler used to do pretty much everything for me.

Have done a bit of googling but have not been able to find any solution, so I must be missing something fundamental. Is this something I need to configure distutils for? Do I need to copy the libs in to my application folder structure anywhere? Both?

Appreciate any advice please. :)

7
  • Possible dup: stackoverflow.com/questions/3442886/… Commented Oct 22, 2011 at 1:54
  • Are you asking about packaging a Python application for Windows? Or cross-platform? Commented Oct 22, 2011 at 1:59
  • Hi P-T, the difference I have with that question is that I am wanting to package external libraries provided bvy others, with my application. Commented Oct 22, 2011 at 2:40
  • retracile - I want to package up so that all of my code is distributable together and that the required external libraries are kept with the code. I will eventually want to package for Linux/Mac, not really interested in Windows. Commented Oct 22, 2011 at 2:43
  • The linked duplicate specifically mentions including third-party libraries. Voting to close as duplicate. Commented Oct 22, 2011 at 3:16

1 Answer 1

0

I think what you're asking is how to create what Python calls a Built Distribution. This can be done with distutils and it is tedious. And again I'm guessing at the question, but I think you'd benefit from the docs about describing extension modules.

Besides that, I don't think a broad answer would be complete without pointing at py2exe and py2app -- utilities to create standalone executables for Windows and OS X, respectively.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.