Skip to content

prebuild.py call causes "build error" #27

@jeff-dh

Description

@jeff-dh

script = "prebuild.py"

For some reason this causes this error over here when I call poetry build:

Preparing build environment with build-system requirements poetry-core>=1.0.0
Building solidpython2 (2.0.1)
Traceback (most recent call last):
  File "/[..]/SolidPython/setup.py", line 2, in <module>
    from setuptools import setup
ModuleNotFoundError: No module named 'setuptools'

Command '['/tmp/tmpkz3ceeao/.venv/bin/python', '/[..]/SolidPython/setup.py', 'build', '-b', '/[..]/SolidPython/build']' returned non-zero exit status 1.


Note: setuptools is installed

changing the pyproject.toml file like this:

[tool.poetry.build]
generate-setup-file = false
script = "prebuild.py"

makes the call work again, but the build process creates a different file!?! solidpython2-2.0.1-cp310-cp310-manylinux_2_35_x86_64.whl instead of solidpython2-2.0.1-py3-none-any.whl

@ssuchter Any idea what's going on there?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions