Code

Ticket #7513: setuptools-test-dep.diff

File setuptools-test-dep.diff, 943 bytes (added by ramiro, 6 years ago)
Line 
1diff -r 5942fe28c8b3 docs/contributing.txt
2--- a/docs/contributing.txt     Fri Jun 20 12:34:51 2008 -0300
3+++ b/docs/contributing.txt     Fri Jun 20 13:19:03 2008 -0300
4@@ -739,6 +739,15 @@
5       deleted when the tests are finished. This means your user account needs
6       permission to execute ``CREATE DATABASE``.
7 
8+.. admonition:: Getting 'ImportError: No module named pkg_resources' errors?
9+
10+    If you find the above error when running the unit tests, make sure you've
11+    installed the setuptools_ package for the Python version you are using.
12+    One of the tests tries to load a Django template from an egg so setuptools
13+    is needed for that particular test.
14+
15+.. _setuptools: http://pypi.python.org/pypi/setuptools/
16+
17 To run a subset of the unit tests, append the names of the test modules to the
18 ``runtests.py`` command line. See the list of directories in
19 ``tests/modeltests`` and ``tests/regressiontests`` for module names.