Skip to content

setup_requires=["numpy"] fails on Windows+Py3.8 #14873

@anntzer

Description

@anntzer

Packages that use setup_requires=["numpy"] in their setup.py appear to fail to build on Windows+Py3.8.

Reproducing code example:

https://github.com/anntzer/setup_requires-numpy is a minimal repro with just the following setup.py:

from setuptools import setup

setup(
    name="testpkg",
    setup_requires=["numpy"],
)

and is "built" (python setup.py build) on Azure on {linux,mac,windows}+{py3.7,py3.8}.

The resulting build is at https://dev.azure.com/anntzer/setup_requires-numpy/_build/results?buildId=158
As one can see, all builds succeed except windows+Py3.8, which fails with

Traceback (most recent call last):
  File "setup.py", line 3, in <module>
    setup(
  File "C:\hostedtoolcache\windows\Python\3.8.0\x64\lib\site-packages\setuptools\__init__.py", line 144, in setup
    _install_setup_requires(attrs)
  File "C:\hostedtoolcache\windows\Python\3.8.0\x64\lib\site-packages\setuptools\__init__.py", line 139, in _install_setup_requires
    dist.fetch_build_eggs(dist.setup_requires)
…distutils.errors.DistutilsError: Setup script exited with error: SandboxViolation: mkd…sers\\VSSADM~1\\AppData\\Local\\Temp\\easy_install-0gx4h9jy\\numpy-1.17.3\\build', 511) {}

The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.

This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand.  Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.

Error message:

see above

Numpy/Python version information:

numpy 1.17.3, Python 3.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions