Closed githubkusi closed 2 years ago
It looks like the last error comes from swig-pypi.
have you tried to install the OpenSUSE swig package instead? https://software.opensuse.org/package/swig
You may also have to install the OpenSUSE package libpcsclite-dev https://software.opensuse.org/package/libpcsclite-dev to solve the problem:
Package libpcsclite was not found in the pkg-config search path.
Perhaps you should add the directory containing `libpcsclite.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libpcsclite', required by 'virtual:world', not found
yes, installing the opensuse swig package brings me indeed further. libpcsclite-dev is also needed for winscard.h. I intend to prepare a multi-platform (mac & linux) package where it would be very helpful to have a wheel such that it can be completely installed in a venv rather than touching the system. Would you consider a wheel for pyscard?
I use swig to create the connection between Python and C. A Python wheel package then have a part of native code compiled. This binary depends on the Python version and also the CPU architecture.
I already provide wheels for Windows. Because installing the dependencies on Windows is "complex". See https://pypi.org/project/pyscard/#files
I am no sure it is possible to create a multi-platform wheel for pyscard. But please do try it by yourself. Feel free to send me patches.
This one could be of help: https://github.com/pypa/cibuildwheel, with an example for appveyor what you are using
Please provide a patch. I do not plan to work on multi-Python and multi-OS wheel myself.
This is now a different subject. I close this issue as it is resolved.
It would be great to have a wheel for pyscard.
Installing wheel, then I get
Installing swig with
pipx install git+https://github.com/nightlark/swig-pypi.git
and re-runningIs there a way to install everything in a venv or by means of pipx? System: Opensuse Tumbleweed, Python 3.8