Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
2 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
 
"""Minimal setup.py to produce a platform-specific wheel.
 
The package contains pre-built native libraries (not CPython extension modules),
so the wheel tag should be py3-none-{platform} rather than cp3XX-cp3XX-{platform}.
This means a single wheel works across all supported Python versions.
"""
 
from setuptools import setup
from setuptools.command.bdist_wheel import bdist_wheel
from setuptools.dist import Distribution
 
 
class PlatformBdistWheel(bdist_wheel):
    """Override wheel tags to py3-none-{platform}."""
 
    def get_tag(self):
        _, _, plat = super().get_tag()
        return "py3", "none", plat
 
 
class BinaryDistribution(Distribution):
    def has_ext_modules(self):
        return True
 
 
setup(distclass=BinaryDistribution, cmdclass={"bdist_wheel": PlatformBdistWheel})