From b37ac83c50b572360582541aceaa0ff4abbd19b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Sun, 3 Apr 2022 11:18:59 +0200 Subject: [PATCH] Add pyproject.toml Explicitly declare that setuptools is the build backend for this project, so it can be installed in environment where setuptools is not pre-installed. --- pyproject.toml | 3 +++ setup.py | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..fed528d4 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" diff --git a/setup.py b/setup.py index fd52e32f..0d189bb8 100755 --- a/setup.py +++ b/setup.py @@ -2,6 +2,10 @@ # -*- coding: utf-8 -*- import os +import sys + +sys.path.insert(0, os.path.dirname(__file__)) + import openupgradelib from setuptools import setup