implement fallback for older setuptools

This commit is contained in:
Jakob Ketterl 2020-01-05 21:08:17 +01:00
parent 5fdc5489a1
commit 15d351258f

View File

@ -1,7 +1,13 @@
from glob import glob from glob import glob
from setuptools import setup, find_namespace_packages from setuptools import setup
from owrx.version import strictversion from owrx.version import strictversion
try:
from setuptools import find_namespace_packages
except ImportError:
from setuptools import PEP420PackageFinder
find_namespace_packages = PEP420PackageFinder.find
setup( setup(
name="OpenWebRX", name="OpenWebRX",
version=str(strictversion), version=str(strictversion),