Skip to content

Commit

Permalink
Fix import order to supress the setuptools warning;
Browse files Browse the repository at this point in the history
setuptools warns that it should be imported before Distutils

```
site-packages/setuptools/distutils_patch.py:25: UserWarning: Distutils was imported before Setuptools. This usage is discouraged and may exhibit undesirable behaviors or errors. Please use Setuptools' objects directly or at least import Setuptools first.
```
  • Loading branch information
mthrok committed Jul 31, 2020
1 parent dab7f64 commit c120726
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import shutil
import subprocess
from pathlib import Path
import distutils.command.clean
from setuptools import setup, find_packages
import distutils.command.clean

from build_tools import setup_helpers

Expand Down Expand Up @@ -85,5 +85,6 @@ def run(self):
cmdclass={
'build_ext': setup_helpers.BuildExtension.with_options(no_python_abi_suffix=True)
},
install_requires=[pytorch_package_dep]
install_requires=[pytorch_package_dep],
zip_safe=False,
)

0 comments on commit c120726

Please sign in to comment.