8000 Fixups by jonathanunderwood · Pull Request #266 · python-lz4/python-lz4 · GitHub
[go: up one dir, main page]

Skip to content

Fixups #266

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Dec 30, 2022
Merged
Prev Previous commit
Next Next commit
Remove dependency on distutils (#236)
  • Loading branch information
jonathanunderwood committed Dec 30, 2022
commit d47235998c3f54d355646b61e7ff19a182f01ac5
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/usr/bin/env python
import os
from setuptools import setup, find_packages, Extension
from setuptools.command.build_ext import new_compiler
import sys
from distutils import ccompiler


# Note: if updating LZ4_REQUIRED_VERSION you need to update docs/install.rst as
# well.
Expand Down Expand Up @@ -97,7 +98,7 @@ def pkgconfig_installed_check(lib, required_version, default):
]
)

compiler = ccompiler.get_default_compiler()
compiler = new_compiler().compiler_type

if compiler == 'msvc':
extension_kwargs['extra_compile_args'] = [
Expand Down
0