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

Failure building only wheels when using build.py #2214

Open
3 tasks done
roniemartinez opened this issue Mar 21, 2020 · 1 comment
Open
3 tasks done

Failure building only wheels when using build.py #2214

roniemartinez opened this issue Mar 21, 2020 · 1 comment
Labels
kind/bug Something isn't working as expected

Comments

@roniemartinez
Copy link

  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: Mac OS X 10.15.3 (Catalina)
  • Poetry version: 1.0.5

Issue

Following on existing example of build.py for poetry with Cython (see here):

  1. when running poetry build, everything is successful - sdist and wheel are built successfully and working properly ✅
  2. when running poetry build -f wheel only, the error below is thrown ❌ (NOTE: I hid paths)
[EnvCommandError]
Command ['/Users/<user>/Library/Caches/pypoetry/virtualenvs/<project>-VUpAFIMn-py3.7/bin/python', '/Users/<user>/Projects/<project>/setup.py', 'build', '-b', '/Users/<user>/Projects/<project>/build'] errored with the following return code 2, and output: 
/Users/<user>/Library/Caches/pypoetry/virtualenvs/<project>-VUpAFIMn-py3.7/bin/python: can't open file '/Users/<user>/Projects/<project>/setup.py': [Errno 2] No such file or directory

It seems that it cannot find setup.py which is supposedly autogenerated by poetry when building.

@roniemartinez roniemartinez added the kind/bug Something isn't working as expected label Mar 21, 2020
@roniemartinez roniemartinez changed the title Failure building only wheels when using build.py and cython Failure building only wheels when using build.py Mar 21, 2020
@roniemartinez
Copy link
Author

Just found out it fails with just a simple build function that does nothing.

# build.py


def build(setup_kwargs):
    pass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

1 participant