File: setup.py

package info (click to toggle)
python-pylibsrtp 0.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 176 kB
  • sloc: python: 425; makefile: 16
file content (18 lines) | stat: -rw-r--r-- 410 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import setuptools
from wheel.bdist_wheel import bdist_wheel


class bdist_wheel_abi3(bdist_wheel):
    def get_tag(self):
        python, abi, plat = super().get_tag()

        if python.startswith("cp"):
            return "cp39", "abi3", plat

        return python, abi, plat


setuptools.setup(
    cffi_modules=["src/_cffi_src/build_srtp.py:ffibuilder"],
    cmdclass={"bdist_wheel": bdist_wheel_abi3},
)