this might be the “again-python-project” one topic, but I am interested how to make a project, for example a simple game, which will have an installer so the user can just double clcik and install a working game in some dir (specified later). I was looking for setup.py, distutils, easy_install and pip, but mu projects keep saying that installing in /home/user/install_dir is not in env.variable PYTHONPATH, which I changed in python sys.path… I am just asking how I build my project, so it is:
- ordered in dirs
- user installable
- includes all needed libs ( which I think is the only working option from my setup.py-es)
- user uninstallable
For more info – I was reading Zed Shaw`s Learn Python The Hard Way, and on his chapter for building a project skeleton, none of his steps were working, besides the nosetests, I tested it with both py2 and py3.
Thanks in advance.
If I understand your question, you need a way to distribute a Python project and all it’s dependencies.
Did you try PyInstaller already. It allows you to “freeze” your (and all needed) Python modules into one executable. It also provides mechanisms to set up the environment as needed.