i writing program in python sent other people, running same python version, these 3rd party modules need installed use it.
is there way compile .pyc (i pyc because python compiled file) has dependant modules inside well?
so can run programme without needing install modules separately?
edit: sorry if wasnt clear, aware of things such cx_freeze etc im trying single python file.
so can type "python myapp.py" , run. no installation of anything. if module codes in .py file.
if on python 2.3 or later , dependencies pure python:
if don't want go setuptools or distutiles routes, can provide zip file pycs code , of dependencies. have a little work make complex pathing inside zip file available (if dependencies lying around @ root of zip not necessary. add zip location path , should work if dependencies files has been installed.
if dependencies include .pyds or other binary dependencies you'll have fall on distutils.
Comments
Post a Comment