-
Notifications
You must be signed in to change notification settings - Fork 24
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
why don't you build wheel for the package and publish it at pypi for easy installing? #52
Comments
Because I don't know how :-) |
the thing with this lib is that its include also binaries and not only python files. you need to include them in the wheel somehow using setup.py. for complete reference see https://packaging.python.org/guides/distributing-packages-using-setuptools/ also published a stackoverflow question: https://stackoverflow.com/questions/66471737/how-to-publish-python-package-by-wheel-with-extra-tcl-filestkdnd |
hey friend. |
Hi, If I understand your question, you are asking where the library (binaries + tcl code) can be installed. TkInter when installed uses a Tcl installation. TkDND must be installed inside the lib dir of this installation. Thus, the first alternative is to install to tcl/binary part at the path returned by:
Which in my system prints: The second alternative is to install it where Tcl puts packages in the system, and extend Tcl's "auto_path" global variable.
In my system it prints: Of course there is also the alternatives to install the binary where python install packages, and update Tcl's auto_path. |
so I still don't understand how Tkinter knows to load tkdnd2.9.2 folder in the tcl directory. if I will remove this folder I won't be able to run the tkdnd python wrapper and it will fail with 'Unable to load tkdnd library' error. how does python/tcl knows to load this folder? |
apparently, someone successfully improved your code and build a successful setup.py file! thank you. |
following this to build a wheel and upload it for easy install via pip install instead of all of these Stackoverflow issues can make as all a life much easier and can get your handy extension very popular.
why don't you do it?
The text was updated successfully, but these errors were encountered: