Skip to content

Commit 48b28d1

Browse files
Refs #177 - Compile messages before building the package
Co-authored-by: Timo Ludwig <ti.ludwig@web.de>
1 parent b60394b commit 48b28d1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

setup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
import os
2+
import subprocess
3+
import sys
24

35
from setuptools import find_packages, setup
46

57

68
def read(fname):
79
return open(os.path.join(os.path.dirname(__file__), fname)).read()
810

11+
12+
if 'sdist' in sys.argv[1:]:
13+
subprocess.run(["django-admin", "compilemessages"], cwd="linkcheck")
14+
915
setup(
1016
name='django-linkcheck',
1117
version='2.2.0',

0 commit comments

Comments
 (0)