Skip to content

Commit

Permalink
fix enable tox to be run without django installed
Browse files Browse the repository at this point in the history
  • Loading branch information
pgammans committed Jun 27, 2023
1 parent c4cec26 commit 59a7550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from setuptools import find_packages, setup

# When creating the sdist, make sure the django.mo file also exists:
if "sdist" in sys.argv or "develop" in sys.argv:
if ("sdist" in sys.argv or "develop" in sys.argv) and not os.environ.get("TOX_WORK_DIR", ""):
os.chdir("polymorphic")
try:
from django.core import management
Expand Down

0 comments on commit 59a7550

Please sign in to comment.