Skip to content

Commit

Permalink
Update setup.py -> Cythonize
Browse files Browse the repository at this point in the history
  • Loading branch information
mk-81 authored Jan 23, 2024
1 parent 6685d67 commit 3ac9eba
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

from setuptools import find_packages
from setuptools import setup
from setuptools import Extension
from setuptools.command.test import test as TestCommand
import mpd
import os
import sys
from Cython.Build import cythonize


if sys.version_info[0] == 2:
Expand Down Expand Up @@ -68,6 +70,14 @@ def read(fname):
version=VERSION,
python_requires='>=3.6',
description="A Python MPD client library",

ext_modules=cythonize(
[ Extension("mpd", ["mpd/__init__.py", "mpd/base.py", "mpd/asyncio.py"]) ],
compiler_directives={
"language_level":3
}
),

long_description=read('README.rst'),
long_description_content_type='text/x-rst',
classifiers=CLASSIFIERS,
Expand Down

0 comments on commit 3ac9eba

Please sign in to comment.