Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
Tester authored and Tester committed Feb 1, 2024
1 parent 051ff06 commit 5ed9cad
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import os
import sys
import platform
import shutil
import struct
from distutils.command.build import build
from pathlib import Path
from setuptools import setup
from urllib.request import urlretrieve
from wheel.bdist_wheel import bdist_wheel
from distutils.command.build import build

from setuptools import setup
from wheel.bdist_wheel import bdist_wheel

__version__ = "0.6.0b9"

Expand Down Expand Up @@ -111,15 +110,11 @@ def run(self):
super().run()


# this option is only valid in setup.py
kwargs = {"cffi_modules": ["curl_cffi/build.py:ffibuilder"]}
if len(sys.argv) > 1 and sys.argv[1] != 'bdist_wheel':
kwargs = {}

setup(
# this option is only valid in setup.py
cffi_modules=["curl_cffi/build.py:ffibuilder"],
cmdclass={
"bdist_wheel": bdist_wheel_abi3, # type: ignore
"build": my_build, # type: ignore
},
**kwargs,
)

0 comments on commit 5ed9cad

Please sign in to comment.