-
Notifications
You must be signed in to change notification settings - Fork 128
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
Add Homebrew installation instructions #400
Conversation
stp is now in Homebrew/core: Homebrew/homebrew-core#75877
Thanks, @carlocab for getting this into Homebrew! I guess it would be worth making it clear that this is "quick install" for macOS (we can't trust users won't try silly stuff). W.r.t. Homebrew/homebrew-core#75877: this is built with Python but doesn't have any Python tests; should we add some? |
In theory it should be a quick install for Linux too, as Homebrew runs on Linux as well. However, that'll only work when It won't get bottled (packaged as a pre-built binary) right away, but if you or one of your users opens an issue at Linuxbrew to request a bottle the Linuxbrew maintainers usually get one set up relatively quickly. (Or I can try to nudge one of the maintainers myself, but I think it'll be more convincing coming from someone who actually plans to use it on Linux.) Re the Python module: I didn't actually check that the works... I only set it up since |
Oh, I just didn't know that being in Homebrew "immediately" meant it was enabled in Linuxbrew -- that's pretty awesome, and definitely reduces the importance of my comment! Can you let us know here when STP is in Linuxbrew? That makes it much more appealing to get this PR merged (not that it isn't appealing currently, it just makes it more appealing once it addresses macOS and Linux!).
@msoos is the main author of CMS (and also a maintainer of STP), so he can confirm this, but I wasn't aware that Python was a hard dependency of CMS.
What's the status of running |
Sure, will do.
Oh, I am pretty sure CMS doesn't need Python. It just so happens that the Homebrew CMS formula declares a Python dependency. It was there when the formula was first added to Homebrew/core, so I guess whoever contributed it wanted the Python bindings.
We don't run unit tests, unfortunately. (With a handful of exceptions for security-sensitive software: |
Oh, my comment there was because I had faced a similar difficulty (trying to install STP using I haven't been able to test the Python module yet, but I imagine I'll get to it in the next few days. |
Ran into a little hiccup:
However, this small modification to --- stp.py.old 2021-04-26 19:27:13.000000000 +0100
+++ stp.py 2021-04-26 19:27:49.000000000 +0100
@@ -42,7 +42,7 @@
if Py3:
long = int
-from library_path import PATHS
+from stp.library_path import PATHS
for path in PATHS:
if not os.path.exists(path): Seems to be working perfectly fine after that. |
Sorry for my late response here. Yep, CMS doesn't need python, in fact it barely needs anything on base setup :) Also, this is amazing work, I am so amazed at the community sometimes! So much work. It's incredible to see. Anyway, this looks amazing. Wanna merge @andrewvaughanj ? |
This is needed (at least) when one customises the Python bindings installation directory using `PYTHON_LIB_INSTALL_DIR`. Since the `library_path` module will also be installed into the same directory as `stp.py`, this change should be safe to make even when one uses the default `PYTHON_LIB_INSTALL_DIR`. I moved this line up with the other imports because my linter was complaining about its location, but I don't mind moving it back to where it was originally. See stp#353 and stp#400.
Very little work was needed on my end -- it was all made easy by other people's work (including yours!). I opened #401 for the fix I suggest in #400 (comment) because I think it's something you'd want to apply more generally. |
All good! Thanks, @carlocab! |
stp is now in Homebrew/core: Homebrew/homebrew-core#75877
Not sure if this is something you'd like to advertise in your README, but opening this just in case it is.