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

Fix: DEPRECATION: pyscard is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. #146

Closed
LudovicRousseau opened this issue Jan 11, 2023 · 3 comments
Assignees

Comments

@LudovicRousseau
Copy link
Owner

Your system information

  • Operating system used: MacOS Darwin computer.local 20.6.0 Darwin Kernel Version 20.6.0: Mon Aug 29 04:31:06 PDT 2022; root:xnu-7195.141.39~2/RELEASE_X86_64 x86_64
  • pyscard version: 2.0.5
  • Python version: Python 3.11.1

Please describe your issue in as much detail as possible:

See #145

Steps for reproducing this issue:

$ pip install pyscard
Collecting pyscard
  Using cached pyscard-2.0.5.tar.gz (150 kB)
  Preparing metadata (setup.py) ... done
Installing collected packages: pyscard
  DEPRECATION: pyscard is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
  Running setup.py install for pyscard ... done
Successfully installed pyscard-2.0.5
@bittner
Copy link
Contributor

bittner commented Feb 20, 2023

It should be sufficient to add a (empty) pyproject.toml file and use build to build your package. This way, you can keep setup.py in place and don't need to change a lot, if that worries you.

@LudovicRousseau
Copy link
Owner Author

A pyproject.toml file has been added in 306aff2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants