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

pydistutils.cfg workaround not executed on MacOS when target-architecture is not "darwin" #581

Closed
katzdm opened this issue Apr 4, 2019 · 0 comments

Comments

@katzdm
Copy link
Contributor

katzdm commented Apr 4, 2019

This workaround works excellently, to prevent the notorious must supply either home or prefix/exec-prefix -- not both error caused by brew's system-wide distutils.cfg file.

However, attempting to build with --arch skips this, instead using the linux codepath.

Ideally, the echo "[install]\nprefix=" > .pydistutils.cfg hack is executed whenever the host OS is Darwin, rather than the target OS.

katzdm added a commit to katzdm/please that referenced this issue Apr 9, 2019
To do this, exposes two new build config entries, `CONFIG.HOSTOS` and
`CONFIG.HOSTARCH`. In particular, `HOSTOS` is required for
cross-compiling pip libraries from Darwin.

Resolves thought-machine#581.
peterebden pushed a commit that referenced this issue Apr 10, 2019
To do this, exposes two new build config entries, `CONFIG.HOSTOS` and
`CONFIG.HOSTARCH`. In particular, `HOSTOS` is required for
cross-compiling pip libraries from Darwin.

Resolves #581.
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

No branches or pull requests

1 participant