Исходный код СУБД 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
"""Minimal setup.py to produce a platform-specific wheel."""
 
from setuptools import setup
from setuptools.dist import Distribution
from wheel.bdist_wheel import bdist_wheel
 
 
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})