rethinkdb / rethinkdb-python

Python driver for RethinkDB
https://rethinkdb.com/api/python/
Apache License 2.0
64 stars 35 forks source link

Support cx_freeze #185

Open TTimo opened 4 years ago

TTimo commented 4 years ago

I would like to distribute a small python app that uses rethinkdb on Windows. I have some experience using cx_freeze for this sort of tasks so I gave it a try (with latest Python 3.8, rethinkdb-python and cx_freeze modules).

Unfortunately the packaging doesn't work atm, the packaged version fails to initialize with an error doesn't support asyncio loop type (my project does use asyncio - it would probably be a different loop type error for other loop types).

It appears the net_asyncio and other modules are not being packaged.

gabor-boros commented 4 years ago

Hello @TTimo,

I’ll check this in the upcoming days! Thanks for reporting. 😶

gabor-boros commented 4 years ago

Hello @TTimo,

I just got back to this. What do you mean by "It appears the net_asyncio and other modules are not being packaged."? I just downloaded the files from PyPi, extracted it and as I can see, every file is there including net_asyncio.py.

Could you please help me with more context?

TTimo commented 4 years ago

cx_freeze is a tool for distribution of python software. In particular on Windows, it pulls python's executables and shared libraries together, as well as your compiled modules and dependencies, and puts everything together in such a way that it can run on any Windows machine, and not require Python installed beforehand.