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:
Chaos Yu 2020-12-10 16:08:51 +08:00 коммит произвёл GitHub
Родитель 25642a48ca
Коммит 6a52323d84
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 9 добавлений и 3 удалений

5
.github/linters/tox.ini поставляемый
Просмотреть файл

@ -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

Просмотреть файл

@ -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__