From 4509fb6e98481e7e77febc5d66c1f9b5845e3e7a Mon Sep 17 00:00:00 2001 From: "Colin B. Macdonald" Date: Tue, 19 May 2020 23:57:55 -0700 Subject: [PATCH] add pyproject.html I read https://github.com/pypa/setuptools/issues/1698, and a side effect of source root not being in sys.path is mentioned: probably that is related to PyInstaller and other things so I left a commented out thing in setup.py b/c odds seem high that will effect us. --- pyproject.toml | 3 +++ setup.py | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 000000000..121a39f5f --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools >= 40.6.0", "wheel"] +build-backend = "setuptools.build_meta" diff --git a/setup.py b/setup.py index 6472ee2a0..e8496d06d 100644 --- a/setup.py +++ b/setup.py @@ -5,6 +5,9 @@ with open("README.md", "r") as fh: long_description = fh.read() +# TODO: "stop importing things from the local path" or use this workaround: +#sys.path.insert(0, os.dirname(__file__)) + # This directory dir_setup = os.path.dirname(os.path.realpath(__file__))