1

is it possible to create python executable targeted for linux, from mac os x?

PyInstaller seems to be at an early stage, and I don't know much else.

Thanks

3 Answers 3

5

Do you really need a standalone executable? For most Linux distributions, the easier and more common way to distribute Python software is to just distribute the source.

Every major Linux distribution already has Python installed, and some have it installed by default.

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

3 Comments

I am using additional modules not included within the standard installation. I am not sure if I am allowed to install them
You could include the modules with the source code. That in itself is not a good reason to make an executable.
@Banana: "additional modules" and "your application" are hard to distinguish. The "additional modules" just make your application larger. If you can install your application, you can install these additional modules as part of it.
0

There is tool that can be run on single OS and make you executables for different OSes. You will need to do the compilation for every OS on a (virtual)machine that have it installed. Fox OS X you can check py2app in http://undefined.org/python/

2 Comments

py2app "converts python scripts into executable Mac OS X applications". The OP wants to make linux executables.
my mistake, I have misunderstood the question, but he will still need a linux (virtual)machine
0

Dont know if available for OS X but take a look at cx_freeze

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.