Skip to content

Commit 569a7af

Browse files
committed
mute some cython and setuptools warnings
1 parent ecc3de6 commit 569a7af

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class sdist(_sdist):
3333
"""
3434
def run(self):
3535
from Cython.Build import cythonize
36-
cythonize(sources, language='c++')
36+
cythonize(sources, language_level="2")
3737
_sdist.run(self)
3838

3939
cmdclass = {'sdist': sdist, 'build_ext': build_ext}
@@ -67,6 +67,7 @@ def run(self):
6767
use_scm_version={"write_to": "src/pyclipper/_version.py"},
6868
description='Cython wrapper for the C++ translation of the Angus Johnson\'s Clipper library (ver. 6.4.2)',
6969
long_description=long_description,
70+
long_description_content_type="text/x-rst",
7071
author='Angus Johnson, Maxime Chalton, Lukas Treyer, Gregor Ratajc',
7172
author_email='[email protected]',
7273
maintainer="Cosimo Lupo",

src/pyclipper/_pyclipper.pyx

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# distutils: language=c++
12
"""
23
Cython wrapper for the C++ translation of the Angus Johnson's Clipper
34
library (ver. 6.2.1) (http://www.angusj.com/delphi/clipper.php)

0 commit comments

Comments
 (0)