From 15d351258f19286f4dcf0b0330aa1e030b5e35c4 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sun, 5 Jan 2020 21:08:17 +0100 Subject: [PATCH] implement fallback for older setuptools --- setup.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index f358d55..dc8636a 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,13 @@ from glob import glob -from setuptools import setup, find_namespace_packages +from setuptools import setup from owrx.version import strictversion +try: + from setuptools import find_namespace_packages +except ImportError: + from setuptools import PEP420PackageFinder + find_namespace_packages = PEP420PackageFinder.find + setup( name="OpenWebRX", version=str(strictversion),