1
0
Fork 0
mirror of https://github.com/MatomoCamp/pretalx-matomocamp.git synced 2024-09-19 15:53:48 +02:00

don't load django on setup

This commit is contained in:
Lukas Winkler 2021-10-14 14:05:30 +02:00
parent d78f4fc0a9
commit 8b47ac987c
Signed by: lukas
GPG key ID: 54DE4D798D244853

View file

@ -1,7 +1,7 @@
import os import os
from distutils.command.build import build from distutils.command.build import build
from django.core import management # from django.core import management
from setuptools import find_packages, setup from setuptools import find_packages, setup
try: try:
@ -13,13 +13,13 @@ except FileNotFoundError:
long_description = "" long_description = ""
class CustomBuild(build): # class CustomBuild(build):
def run(self): # def run(self):
management.call_command("compilemessages", verbosity=1) # management.call_command("compilemessages", verbosity=1)
build.run(self) # build.run(self)
cmdclass = {"build": CustomBuild} # cmdclass = {"build": CustomBuild}
setup( setup(
@ -34,7 +34,7 @@ setup(
install_requires=[], install_requires=[],
packages=find_packages(exclude=["tests", "tests.*"]), packages=find_packages(exclude=["tests", "tests.*"]),
include_package_data=True, include_package_data=True,
cmdclass=cmdclass, # cmdclass=cmdclass,
entry_points=""" entry_points="""
[pretalx.plugin] [pretalx.plugin]
pretalx_matomocamp=pretalx_matomocamp:PretalxPluginMeta pretalx_matomocamp=pretalx_matomocamp:PretalxPluginMeta