From 268c23f732295410d61b7de6981ab8f05d0e2671 Mon Sep 17 00:00:00 2001 From: Daryl Antony Date: Mon, 27 Jan 2014 16:11:51 +1100 Subject: [PATCH] =?UTF-8?q?pip=20install=20-r=20requirements.txt=20?= =?UTF-8?q?=E2=80=93=20fails=20on=20fresh=20install?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit because pip hasn't installed django yet, which is referenced by the django_faker/__init__.py adding setup_requires as an 'abstract' dependency in addition to install_requires, as according to the documentation: "...projects listed in setup_requires will NOT be automatically installed on the system where the setup script is being run. They are simply downloaded to the setup directory if they’re not locally available already. If you want them to be installed, as well as being available when the setup script is run, you should add them to install_requires and setup_requires..." unfortunately, I don't expect this to work because of the separation or responsibilities between pip and setuptools. We need to be able to tell pip to complete the installation of django completely, before carrying out django-faker --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index d63430f..f686597 100644 --- a/setup.py +++ b/setup.py @@ -37,8 +37,9 @@ def read_file(filename): ], keywords='faker fixtures data test django', long_description=read_file('README.rst'), + setup_requires=['django',], install_requires=['django','fake-factory>=0.2'], tests_require=['django','fake-factory>=0.2'], test_suite="runtests.runtests", zip_safe=False, -) \ No newline at end of file +)