8000 parse_flags fails with whitespaces in directories · Issue #4382 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content
parse_flags fails with whitespaces in directories #4382
@MichaelAdello

Description

@MichaelAdello

Scipy failed to build today when using a self-compiled version of numpy, being in a folder that had some whitespaces in it. I could track the issue back to numpy's parse_flags method, which fails if there are whitespaces in the directory.

The following 5 lines of python code will allow to reproduce the issue:

from numpy.distutils.npy_pkg_config import parse_flags
d = parse_flags("-L/my_folder/without_whitespaces/in_it")
print d
d = parse_flags("-L/my_folder/with whitespaces/in_it")
print d

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0