Fix pyproject.toml wheel build issues (#3313)

This commit is contained in:
Raphael Michel
2023-05-13 12:40:16 +02:00
committed by GitHub
parent 5de3b76718
commit 4678cef32a
6 changed files with 101 additions and 37 deletions
+25 -1
View File
@@ -19,8 +19,32 @@
# You should have received a copy of the GNU Affero General Public License along with this program. If not, see
# <https://www.gnu.org/licenses/>.
#
import sys
from pathlib import Path
import setuptools
sys.path.append(str(Path.cwd() / 'src'))
def _CustomBuild(*args, **kwargs):
print(sys.path)
from pretix._build import CustomBuild
return CustomBuild(*args, **kwargs)
def _CustomBuildExt(*args, **kwargs):
from pretix._build import CustomBuildExt
return CustomBuildExt(*args, **kwargs)
cmdclass = {
'build': _CustomBuild,
'build_ext': _CustomBuildExt,
}
if __name__ == "__main__":
setuptools.setup()
setuptools.setup(
cmdclass=cmdclass,
)