diff --git a/tests/django_project/setup.py b/tests/django_project/setup.py
index <HASH>..<HASH> 100755
--- a/tests/django_project/setup.py
+++ b/tests/django_project/setup.py
@@ -3,7 +3,7 @@
 
 from setuptools import setup, find_packages
 
-setup(
+__name__ == '__main__' and setup(
     name='django-project',
     packages=find_packages(),
 )
Fix dist setup in django test project