From d24a1fd99fea4ecff800633abd2b0aed809afe6f Mon Sep 17 00:00:00 2001 From: Joerg Seitter Date: Thu, 16 Apr 2020 14:58:25 +0200 Subject: new package flask Signed-off-by: Joerg Seitter --- package/flask/patches/patch-setup_py | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 package/flask/patches/patch-setup_py (limited to 'package/flask/patches') diff --git a/package/flask/patches/patch-setup_py b/package/flask/patches/patch-setup_py new file mode 100644 index 000000000..4ac6c27fb --- /dev/null +++ b/package/flask/patches/patch-setup_py @@ -0,0 +1,37 @@ +--- Flask-1.1.1.orig/setup.py 2019-07-08 19:59:15.000000000 +0200 ++++ Flask-1.1.1/setup.py 2020-04-11 10:54:23.217330259 +0200 +@@ -1,8 +1,32 @@ + import io + import re + +-from setuptools import find_packages +-from setuptools import setup ++try: ++ from setuptools import find_packages ++except ImportError: ++ import os ++ from distutils.util import convert_path ++ ++ def find_packages(base_path): ++ base_path = convert_path(base_path) ++ found = [] ++ for root, dirs, files in os.walk(base_path, followlinks=True): ++ dirs[:] = [d for d in dirs if d[0] != '.' and d not in ('ez_setup', '__pycache__')] ++ relpath = os.path.relpath(root, base_path) ++ parent = relpath.replace(os.sep, '.').lstrip('.') ++ if relpath != '.' and parent not in found: ++ # foo.bar package but no foo package, skip ++ continue ++ for dir in dirs: ++ if os.path.isfile(os.path.join(root, dir, '__init__.py')): ++ package = '.'.join((parent, dir)) if parent else dir ++ found.append(package) ++ return found ++ ++try: ++ from setuptools import setup ++except ImportError: ++ from distutils.core import setup + + with io.open("README.rst", "rt", encoding="utf8") as f: + readme = f.read() -- cgit v1.2.3