|
| 1 | +diff '--color=auto' -uNr coincurve-19.0.1/setup.py coincurve-19.0.1.patch/setup.py |
| 2 | +--- coincurve-19.0.1/setup.py 2024-03-02 10:40:59.000000000 +0530 |
| 3 | ++++ coincurve-19.0.1.patch/setup.py 2024-03-10 09:51:58.034737104 +0530 |
| 4 | +@@ -47,6 +47,7 @@ |
| 5 | + |
| 6 | + |
| 7 | + def download_library(command): |
| 8 | ++ return |
| 9 | + if command.dry_run: |
| 10 | + return |
| 11 | + libdir = absolute('libsecp256k1') |
| 12 | +@@ -189,6 +190,7 @@ |
| 13 | + absolute('libsecp256k1/configure'), |
| 14 | + '--disable-shared', |
| 15 | + '--enable-static', |
| 16 | ++ '--host=%s' % os.environ['TOOLCHAIN_PREFIX'], |
| 17 | + '--disable-dependency-tracking', |
| 18 | + '--with-pic', |
| 19 | + '--enable-module-extrakeys', |
| 20 | +@@ -269,13 +271,7 @@ |
| 21 | + # ABI?: py_limited_api=True, |
| 22 | + ) |
| 23 | + |
| 24 | +- extension.extra_compile_args = [ |
| 25 | +- subprocess.check_output(['pkg-config', '--cflags-only-I', 'libsecp256k1']).strip().decode('utf-8') # noqa S603 |
| 26 | +- ] |
| 27 | +- extension.extra_link_args = [ |
| 28 | +- subprocess.check_output(['pkg-config', '--libs-only-L', 'libsecp256k1']).strip().decode('utf-8'), # noqa S603 |
| 29 | +- subprocess.check_output(['pkg-config', '--libs-only-l', 'libsecp256k1']).strip().decode('utf-8'), # noqa S603 |
| 30 | +- ] |
| 31 | ++ extension.extra_link_args = ["-lsecp256k1"] |
| 32 | + |
| 33 | + if os.name == 'nt' or sys.platform == 'win32': |
| 34 | + # Apparently, the linker on Windows interprets -lxxx as xxx.lib, not libxxx.lib |
| 35 | +@@ -340,7 +336,7 @@ |
| 36 | + license='MIT OR Apache-2.0', |
| 37 | + |
| 38 | + python_requires='>=3.8', |
| 39 | +- install_requires=['asn1crypto', 'cffi>=1.3.0'], |
| 40 | ++ install_requires=[], |
| 41 | + |
| 42 | + packages=find_packages(exclude=('_cffi_build', '_cffi_build.*', 'libsecp256k1', 'tests')), |
| 43 | + package_data=package_data, |
| 44 | +diff '--color=auto' -uNr coincurve-19.0.1/setup_support.py coincurve-19.0.1.patch/setup_support.py |
| 45 | +--- coincurve-19.0.1/setup_support.py 2024-03-02 10:40:59.000000000 +0530 |
| 46 | ++++ coincurve-19.0.1.patch/setup_support.py 2024-03-10 08:53:45.650056659 +0530 |
| 47 | +@@ -56,6 +56,7 @@ |
| 48 | + |
| 49 | + |
| 50 | + def _find_lib(): |
| 51 | ++ return True |
| 52 | + if 'COINCURVE_IGNORE_SYSTEM_LIB' in os.environ: |
| 53 | + return False |
| 54 | + |
0 commit comments