From 41641ed5bb250a800fa2e755cae1db2d41739f0d Mon Sep 17 00:00:00 2001 From: Cédric Bosdonnat Date: Thu, 3 Aug 2017 16:00:47 +0200 Subject: Use requirements.txt for dependencies Later on when we will introduce libguestfs dependency, we would need to add a dependency_links to setup.py. This is rather hacky and https://caremad.io/posts/2013/07/setup-vs-requirement/ recommends using requirements.txt. Thus, to install the package when all dependencies are already installed, the following command can be used: python setup.py install Otherwise, the recommended way is to use pip as follows: pip install -r recommends.txt -e . This will also download the guestfs python binding, build and install it. However this would be skipped if installed from a linux distro package if this one provides the egg-info. --- setup.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 54e24a2..0d047c3 100755 --- a/setup.py +++ b/setup.py @@ -113,10 +113,6 @@ setuptools.setup( 'pylint': CheckPylint }, - # virt-bootstrap uses passlib to compute the hash of - # root password for root file system. - install_requires=['passlib>=1.6.1'], - tests_require=['mock>=2.0'], extras_require={ -- cgit