Best practice of installing dependencies?

I am thinking of a good way to submit my application, which is a python package. Installing my package is easy to use pythons distutils package.

The problem is with the dependencies my package relies on. If the dependencies are python packages, can I easily handle them using distutils but not python packages? Some of them even need a lot of care when creating and installing them, since special compiler flags must be set, etc.

If I want to automate the installation procedure for a user, what is the best way to do this?

  • Writing a make file that downloads and installs dependencies
  • Write a script that installs dependencies
  • Automation is not the best. just write a guide telling the user how to install Dependencies
  • ???

thanks in advance for any reply or suggestion

+5
source share
2 answers

The most important thing you can decide is to consider your audience.

Are they technically minded and probably comfortable following instructions that determine how to create dependencies themselves? If yes, go to (3). If this is not the case, writing a python or shell script, or a make file to automate the task can be a way. Choose what you prefer to write.

+4
source

Kivy (http://kivy.org/), ​​ . "--", . " > ", ... (Windows). , .

Linux ( "linux" ), , zip "portable-deps" . script, :

  • zip
  • script
  • zip -. zip

MacOSX, zip - dmg .

, , , :)

build_portable distutils:

+4

All Articles