Skip to content

Commit

Permalink
Switch to [build-system] mechanism to fetch build requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
frankier committed Jul 1, 2020
1 parent 602924c commit 00e8323
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions pyproject.toml
@@ -0,0 +1,2 @@
[build-system]
requires = ["setuptools", "wheel", "Cython", "torch", "numpy"]
3 changes: 1 addition & 2 deletions setup.py
Expand Up @@ -4,9 +4,8 @@
import subprocess
import time

from setuptools import find_packages, setup, Extension, dist
from setuptools import find_packages, setup, Extension
from setuptools.command.install import install
dist.Distribution().fetch_build_eggs(['Cython', 'numpy>=1.11.1', 'torch'])

import numpy as np
from Cython.Build import cythonize # noqa: E402
Expand Down

0 comments on commit 00e8323

Please sign in to comment.