Skip to content

Commit 07be494

Browse files
authored
Merge pull request #4 from joshmoore/eugo-inc/main
pre-commit fixes
2 parents ed3e79e + 130e0e7 commit 07be494

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

setup.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import os
22
import sys
3+
from distutils import ccompiler
4+
from distutils.command.clean import clean
5+
from distutils.sysconfig import customize_compiler
36
from glob import glob
47

58
import cpuinfo
9+
import pkgconfig
610
from Cython.Distutils.build_ext import new_build_ext as build_ext
711
from setuptools import Extension, setup
812
from setuptools.errors import CCompilerError, ExecError, PlatformError
9-
from distutils import ccompiler
10-
from distutils.command.clean import clean
11-
from distutils.sysconfig import customize_compiler
12-
import pkgconfig
1313

1414
# determine CPU support for SSE2 and AVX2
1515
cpu_info = cpuinfo.get_cpu_info()
@@ -472,14 +472,14 @@ def run(self):
472472
build_ext.run(self)
473473
except PlatformError as e:
474474
error(e)
475-
raise BuildFailed()
475+
raise BuildFailed
476476

477477
def build_extension(self, ext):
478478
try:
479479
build_ext.build_extension(self, ext)
480480
except ext_errors as e:
481481
error(e)
482-
raise BuildFailed()
482+
raise BuildFailed
483483

484484

485485
class Sclean(clean):

0 commit comments

Comments
 (0)