Skip to content

Instantly share code, notes, and snippets.

View xitongsys's full-sized avatar
😃

xitongsys xitongsys

😃
View GitHub Profile
@ophers
ophers / setup.py
Created January 22, 2020 12:51
Produce a Python Wheel without sources with CLI option --exclude-source-files
import os
from distutils import log
from setuptools import setup, find_packages
from setuptools.command.build_py import build_py as _build_py
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
from wheel.pep425tags import get_impl_ver
class build_py(_build_py):
def initialize_options(self):