1

So I wrote a little Command-Line App and want to provide an easy way to clone and use it. Problem: My app has some dependencies like Hashlib and Pyperclip.

Is there a best practice to get missing packages installed on a different machine?

  • Can I do so without people needing to install global pip packages?

    • It is a good idea to ship it as a venv?
    • Can like compile them into a single python file (somewhat like a binary)?
  • If I cannot do so, how to I get packages installed on a different machine?

Is there a nice routine to allow the user to completely remove my app once installed?

1
  • 1
    You want to use a setup.py and then upload it to pypi. Then people can just do python -m pip install <yourlib> and it will get all the dependencies Commented Jan 3, 2017 at 22:50

1 Answer 1

1

You could use the py2exe module to make a standalone application for the Windows platform. You can use py2app to make standalone apps on the Mac platform. For Linux, you should prepare a package using the .deb format to target the Ubuntu/Debian environment (which is one of the most popular flavors of *nix). Each other *nix flavor has its own packaging system that you would have to follow to target it as a platform.

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.