-
Notifications
You must be signed in to change notification settings - Fork 15
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
bundle the chromedriver binary in the wheel and install it as a script #41
Comments
Isn't this the case for this package? |
it's good that the binary is included with the wheel, i didn't realize that because i was looking in for example, you could have a wrapper script that looks something like this: # ./chromedriver_py/run.py
from subprocess import run
from chromedriver_py import _get_filename
def main():
run([_get_filename(), *sys.argv[1:]]) and in [project.scripts]
chromedriver = "chromedriver_py.run:main" more info here. (i can see this project does not use the benefit of doing this is that all the user needs to do is |
@DetachHead Thanks for the clarification! I already got an Issue that titles "add chromedriver to PATH" since i got that idea for some time now :) |
is it #8? should we close this issue and re-open that one? |
Ouh i closed it.. nope lets keep this one open here :) |
Would it be better to copy the real executable into the scripts folder, rather than create a new executable that runs python, runs a script that then runs chromedriver? |
if we add: setup(
...
scripts=["binaries/chromedriver"] # etc
) the binaries will be included directly |
I can add this to scripts, this should do the trick BUT the problem would be that you have multiple chromedriver binaries in your path then. |
is this because all of the chromedrivers are included? specifying by name would work, but wouldn't really improve my specific usage of
yeah, python build sucks. have you tried |
Yes #7 has to be addressed before this change. The Problem with platform specific wheels is that this is the only docu: https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/#platform-wheels It also says that if the builder detects that you have just pure python code, it will not build a specific version for each distro ... and this is what happens when i build the wheel aswell. |
Maybe use PDM instead? |
it would be great if this package worked the same way as nodejs-wheel, where the binary is bundled with the wheel and exposed as a script. this would mean that
pip install chromedriver-py
would be all the user needs to do, without having to manually run any additional scripts to actually install chromedriver.The text was updated successfully, but these errors were encountered: