Commit 24e8c7fd authored by Jason Madden's avatar Jason Madden

Windows setuptools on appveyor was incredibly picky about paths.

parent 61acfd7a
......@@ -120,7 +120,7 @@ install:
# pip will build them from source using the MSVC compiler matching the
# target Python version and architecture
# Note that psutil won't build under PyPy on Windows.
- "%CMD_IN_ENV% pip install -U wheel cython greenlet cffi"
- "%CMD_IN_ENV% pip install -U setuptools wheel cython greenlet cffi"
- ps:
if ("${env:PYTHON_ID}" -ne "pypy") {
......
......@@ -61,8 +61,11 @@ LIBUV_INCLUDE_DIRS = [
# Initially based on https://github.com/saghul/pyuv/blob/v1.x/setup_libuv.py
def _libuv_source(rel_path):
path = os.path.join(libuv_dir, 'src', rel_path)
assert os.path.isfile(path), path
# Certain versions of setuptools, notably on windows, are *very*
# picky about what we feed to sources= "setup() arguments must
# *always* be /-separated paths relative to the setup.py
# directory, *never* absolute paths." POSIX doesn't have that issue.
path = os.path.join('deps', 'libuv', 'src', rel_path)
return path
LIBUV_SOURCES = [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment