-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Lorenz Leutgeb <[email protected]> Co-authored-by: kubaneko <[email protected]> Co-authored-by: Ivan Mincik <[email protected]> Co-authored-by: Auguste Baum <[email protected]>
- Loading branch information
1 parent
60d0b2b
commit 86d1c83
Showing
8 changed files
with
273 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
diff --git a/setup.py b/setup.py | ||
index 6c851e5..b7b834c 100644 | ||
--- a/setup.py | ||
+++ b/setup.py | ||
@@ -1,7 +1,6 @@ | ||
import os | ||
from distutils.command.build import build | ||
|
||
-from django.core import management | ||
from setuptools import find_packages, setup | ||
|
||
try: | ||
@@ -15,8 +14,13 @@ except FileNotFoundError: | ||
|
||
class CustomBuild(build): | ||
def run(self): | ||
- management.call_command("compilemessages", verbosity=1) | ||
- build.run(self) | ||
+ try: | ||
+ from django.core import management | ||
+ | ||
+ management.call_command("compilemessages", verbosity=1) | ||
+ build.run(self) | ||
+ except ModuleNotFoundError: | ||
+ return | ||
|
||
|
||
cmdclass = {"build": CustomBuild} | ||
@@ -31,3 +35,4 @@ setup( | ||
author="Tobias Kunze", | ||
author_email="[email protected]", | ||
+ python_requires=">=3.7", | ||
license="Apache Software License", |
Oops, something went wrong.