fix issue that sometimes there is conflict between distutils and setuptools (#208)
* fix issue that cython and setuptools conflict * follow the accepted temp workaround * update comment, it should be conflict between setuptools and distutils
This commit is contained in:
Родитель
25642a48ca
Коммит
6a52323d84
|
@ -18,7 +18,8 @@ exclude =
|
|||
.vscode,
|
||||
.github,
|
||||
scripts,
|
||||
tests
|
||||
tests,
|
||||
setup.py
|
||||
|
||||
max-line-length = 120
|
||||
|
||||
|
@ -35,4 +36,4 @@ use_parentheses = True
|
|||
multi_line_output = 6
|
||||
known_first_party = maro
|
||||
filter_files = True
|
||||
skip_glob = maro/__init__.py, tests/*, examples/*
|
||||
skip_glob = maro/__init__.py, tests/*, examples/*, setup.py
|
||||
|
|
7
setup.py
7
setup.py
|
@ -4,7 +4,12 @@
|
|||
import io
|
||||
import os
|
||||
|
||||
from setuptools import Extension, find_packages, setup
|
||||
# NOTE: DO NOT change the import order, as sometimes there is a conflict between setuptools and distutils,
|
||||
# it will cause following error:
|
||||
# error: each element of 'ext_modules' option must be an Extension instance or 2-tuple
|
||||
from setuptools import find_packages
|
||||
from distutils.core import setup
|
||||
from distutils.extension import Extension
|
||||
|
||||
from maro import __version__
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче