-
Notifications
You must be signed in to change notification settings - Fork 67
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
Use pip for package management #103
Comments
Thank you for bringing up this possible improvement! It would be awesome to pick some low-hanging fruits to make pdfsizeopt (and its dependencies) easier to install and upgrade for its users. However, I can't see an obvious low-hanging fruit (small change bringing a big improvement). If you have ideas, please elaborate. Please prepare a pull request to add a The Python package dependency list of pdfsizeopt is empty: it uses only standard Python modules (for Python 2.4, 2.5, 2.6 and 2.7). However, pdfsizeopt has some external binary dependencies, such as Ghostscript (typically
I doubt it would, because it would make installing the external binary dependencies harder. Right now the installation instructions on https://github.com/pts/pdfsizeopt are easy to follow and unambiguous. The installation method starting with
So even if
Who is compiling which code, from which programming language to what? What are their pain points? How does a pip package help them?
pdfsizeopt already has a multiplatform (Linux, macOS, Windows) binary release, distribution and upgrade mechanism, which I think is a good balance between user convenience and burden on the maintainer (me, @pts now). If you have an idea how pdfsizeopt should be doing it instead, please file another issue, and explain it there. I'm looking forward to your ideas.
pdfsizeopt works with these versions of Python: 2.4, 2.5, 2.6, 2.7. I can't see how pip would help installing and verifying the right version of Python. In addition to Python itself, pdfsizeopt has some binary dependencies, and pdfsizeopt is very picky on the version of some of those (for example, the latest stable release of Ghostscript doesn't work, pdfsizeopt needs 9.05 or 9.10). How would pip help here?
How would pip help here? |
I think it is an interesting idea. I also think there are ready made libraries that can do this. There's vcpkg for c++ projects and github itself could have code that does this. It's easier if you have a program with a user interface. It would be nice if you could do some research an figure out what options there are. |
What would it take to make this a viable pip package (and potentially hosted on PyPI)?
Making this a pip package could simplify installation, compiling the code, making it an executable, verifying/installing dependencies, and Python version compliance.
At the very least, I think making this a pip package would require a
setup.py
file. To manage this package's dependencies, that file would need some further customization.The text was updated successfully, but these errors were encountered: