A
A
alex stephen2015-03-10 18:15:33
Python
alex stephen, 2015-03-10 18:15:33

Composer analogue for python?

Hello.
I could not find it, but is it possible to set the list of required packages for any installer in the repository with the python application (like composer.json in php)?
I suspect that pip has such an option, but I didn't find it.
ps using python3

Answer the question

In order to leave comments, you need to log in

3 answer(s)
B
bromzh, 2015-03-10
@berezuev

The simplest is to store the list in the requirements.txt file (the name can be anything, but it's accepted):

Flask==0.10.1
Flask-Admin>=1.0.0

Versions can be specified in a variety of ways, including specific commits/branches/tags from version control systems.
Install dependencies:
in the folder with this file
Another option is to describe the dependencies in setup.py, but this is more needed for libraries.

V
Vladimir Abramov, 2015-03-10
@kivsiak

https://pythonhosted.org/setuptools/setuptools.htm... ?
pip freeze ?

D
dienow, 2017-12-31
@dienow

Pipenv is now officially recommended
https://packaging.python.org/tutorials/managing-de...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question