Skip to content
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

{Packaging} Bump cffi to 1.15.0 #20517

Merged
merged 1 commit into from
Dec 3, 2021
Merged

{Packaging} Bump cffi to 1.15.0 #20517

merged 1 commit into from
Dec 3, 2021

Conversation

jiasli
Copy link
Member

@jiasli jiasli commented Nov 26, 2021

Description

Though we have supported Python 3.10 (#20195), cffi 1.14.4 doesn't have a pre-built whl for Python 3.10: https://pypi.org/project/cffi/1.14.4/#files

On a machine without VC compiler, installing cffi 1.14.4 fails with:

> docker run -it --rm python:3.10.0-windowsservercore-1809 powershell

> pip install cffi==1.14.4
Collecting cffi==1.14.4
  Downloading cffi-1.14.4.tar.gz (471 kB)
     |████████████████████████████████| 471 kB 1.1 MB/s
    ERROR: Command errored out with exit status 1:
     command: 'C:\Python\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\pip-install-10ccxvh3\\cffi_ebc1e2aaf510
446a836a1cb7719ff09b\\setup.py'"'"'; __file__='"'"'C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\pip-install-10ccxvh3\\cffi_ebc1e2aaf510446a836a1cb7719ff09b\\setup.py'"'"';f = getattr(tok
enize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();e
xec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\ContainerAdministrator\AppData\Local\Temp\pip-pip-egg-info-kg4luh8c'
         cwd: C:\Users\ContainerAdministrator\AppData\Local\Temp\pip-install-10ccxvh3\cffi_ebc1e2aaf510446a836a1cb7719ff09b\
    Complete output (19 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\ContainerAdministrator\AppData\Local\Temp\pip-install-10ccxvh3\cffi_ebc1e2aaf510446a836a1cb7719ff09b\setup.py", line 131, in <module>
        if sys.platform == 'win32' and uses_msvc():
      File "C:\Users\ContainerAdministrator\AppData\Local\Temp\pip-install-10ccxvh3\cffi_ebc1e2aaf510446a836a1cb7719ff09b\setup.py", line 109, in uses_msvc
        return config.try_compile('#ifndef _MSC_VER\n#error "not MSVC"\n#endif')
      File "C:\Python\lib\distutils\command\config.py", line 225, in try_compile
        self._compile(body, headers, include_dirs, lang)
      File "C:\Python\lib\distutils\command\config.py", line 132, in _compile
        self.compiler.compile([src], include_dirs=include_dirs)
      File "C:\Python\lib\distutils\_msvccompiler.py", line 323, in compile
        self.initialize()
      File "C:\Python\lib\distutils\_msvccompiler.py", line 220, in initialize
        vc_env = _get_vc_env(plat_spec)
      File "C:\Python\lib\site-packages\setuptools\msvc.py", line 316, in msvc14_get_vc_env
        return _msvc14_get_vc_env(plat_spec)
      File "C:\Python\lib\site-packages\setuptools\msvc.py", line 270, in _msvc14_get_vc_env
        raise distutils.errors.DistutilsPlatformError(
    distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/66/6a/98e023b3d11537a5521902ac6b50db470c826c682be6a8c661549cb7717a/cffi-1.14.4.tar.gz#sha256=1a465cbe98a7fd391d47dce4b8f7e5b921e6cd805ef42
1d04f5f66ba8f06086c (from https://pypi.org/simple/cffi/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement cffi==1.14.4 (from versions: 0.1, 0.2, 0.2.1, 0.3, 0.4, 0.4.1, 0.4.2, 0.5, 0.6, 0.7, 0.7.1, 0.7.2, 0.8, 0.8.1, 0.8.2, 0.8.3, 0.8.4, 0.8
.5, 0.8.6, 0.9.0, 0.9.1, 0.9.2, 1.0.0, 1.0.1, 1.0.2.post2, 1.0.3, 1.1.0, 1.1.1, 1.1.2, 1.2.0.post1, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.4.2, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.2, 1.8.3, 1.9.0,
1.9.1, 1.10.0, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.11.4, 1.11.5, 1.12.0, 1.12.1, 1.12.2, 1.12.3, 1.13.0, 1.13.1, 1.13.2, 1.14.0, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.14.5, 1.14.6, 1.15.0rc1, 1.15.0rc2, 1
.15.0)
ERROR: No matching distribution found for cffi==1.14.4

Also see:

@yonzhan
Copy link
Collaborator

yonzhan commented Nov 26, 2021

Packaging

@jiasli jiasli merged commit ea0286b into Azure:dev Dec 3, 2021
@jiasli jiasli deleted the cffi branch December 3, 2021 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants