- Notifications
You must be signed in to change notification settings - Fork 933
Add bullet point for Windows as well #1093
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
base: master
Are you sure you want to change the base?
Conversation
| I noticed there are a lot of projects that wrap librdkafka - it might be better to simply replace the build/install librdkafka section of all these README.md files to simply link back to https://github.com/edenhill/librdkafka#installation to avoid duplicate notes. Likely incomplete list of projects using librdkafka: https://github.com/topics/librdkafka The individual project install/build sections could have language specific stuff though still. I haven't got the Python lib fully working yet on Windows so I'm not even sure what all is required (it works great on Linux in Docker containers - but trying to develop / contribute code via an IDE running on Windows is proving tricky - Developer notes are mum about things like |
| We provide prebuilt binary wheels for Windows that contain librdkafka and its dependencies, and for people that want to build their own they are in for a rough ride due to the random nature of windows/py toolchains. |
| I guess Windows wheels only works with Python 3.8 at the moment? Or maybe I need to re-install a few things? I'm on Python 3.9. Working through the Developer notes for example attempting to run the Unit tests doesn't work fully - I can run individual tests (that likely don't actually require librdkafka - I assume integration tests do that), but run all doesn't work (least of which because syntax is invalid on Windows - |
| There are Py 3.9 windows wheels now (1.7.0) |
| Might want to update the project contributing guide for Windows users to explicitly indicate they must use Python 3.6, 3.7, 3.8, or 3.9 but not 3.10 wheels as it don't exist yet. Also, I never have figured out how to use develop mode (pip install -e) with this project as it appears to uninstall the wheel version replacing it with the source version (good for developing), but I think that means the pre-compiled objects for librdkafka are now nowhere to be found leading to the dreaded |
| @slominskir So it used to be easier, I tended to do |
| @edenhill Couldn't get from a venv pinning Python 3.9 and with the current directory as the confluent-kafka-python git project it actually did install the librdkafka binaries into the source (via |
| A better solution is probably to update setup.py to conditionally download pre-complied extension instead of running C++ compile. It could copy pre-compiled extension into the Discussed here: https://discuss.python.org/t/building-extension-modules-the-2020-way/5950. Ideally we can avoid requiring contributors from having to install C++ and can avoid the Alternatively, adding one more layer of indirection by moving the extension to a separate Python module (and separate PyPi package) and including this new module/package as a dependency would also work. Basically, we need to make it easier to contribute to this project. |
|
|
Windows is conspicuously missing from list of OSes with build/install notes