You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was fixed by recognizing that the table must become [tool.pdm], rather than [tool.pdm.build] that pdm auto-generated (adopted from [tool.poetry.build]) and properly specifying "script" as "build":
If you want to keep this PR open to debug and identify areas where pdm import could be improved or adding disclaimers about using other build systems, feel free. Otherwise, you may close this Issue.
Aside:
I use venv and was trying to use setuptools for now to slowly adopt PDM. I'm also waiting to see how the Python community responds to using PEP 517 over time.
Bottom line, I would still use this over poetry as it is faster, gives me far less dependency grief, and doesn't automatically upper-bound my constraints.
Would definitely like to see how flit build backend works with this in the future.
Steps to reproduce
poetry
projectpdm install
Actual behavior
pdm
fails with:error_log.txt
Note:
I have manually edited all outputs in this issue with Windows environment variable equivalents:
Expected behavior
pdm
is able to parse "Apache-2.0" as an SPDX license name per PEP 639Environment Information
Additional Information
pdm config python.use_env True
)setuptools
:pdm
was installed using thePowerShell
command listed on the homepage:pdm config
Update
This was fixed by recognizing that the table must become
[tool.pdm]
, rather than[tool.pdm.build]
thatpdm
auto-generated (adopted from[tool.poetry.build]
) and properly specifying "script" as "build":However,
pdm
fails to build because it does not findbuild.py
module in my top-level directory:Directory Structure
build.py
Error Log
build_error_log.txt
If instead I use
is-purelib
pdm
will install my editable project. Runningpdm build
still gives the error that it cannot findbuild
:ModuleNotFoundError: No module named 'build'
and even if I try
pdm build --no-isolation
, I get the error:pdm_build_error_log.txt
pdm_build_no_isolation_error_log.txt
The error with
--no-isolation
specified persists even when'license'
is manually updated inbuild.py
:because the information is pulled from the
pyproject.toml
wherelicense-expression
is specified.The text was updated successfully, but these errors were encountered: