-
Notifications
You must be signed in to change notification settings - Fork 12
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
Deciding on the MacPorts name should happen in one place #43
Comments
FYI: since MacPorts requires the |
I don't think this holds true for perl and ruby ports. We can reduce the places where manipulation takes place but I guess no. of functions should stay same for consistency across different upstreams. I tried reducing some manipulations by making the I will try to reduce no. of different places where things are happening. Any thoughts? |
well, since the PG for these ports uses a I have no problem with -for consistency reasons- keeping the number of functions the same so that it can handle all the different frontends. Point is that how to translate the name (i.e., convert to all lower case, do replace('::', '-'), should be ideally done in one place and then other functions can manipulate that name by adding "py-" or whatever. I can't comment off-hand about the "staticmethod" business, that just needs some trying and testing. |
The setup procedures do set the |
thanks @jmroot and you're, of course, completely right. What I meant to say is that in the context of |
Sure, those aren't necessarily the same. Hopefully the setup procs accept the upstream-preferred name when that's different to the port name. |
We currently convert the upstream name to lowercase and/or do other manipulations in multiple locations.
For example, in the
MacPortsPythonPackage
class there is:and after the template-clean up there will be another translation of dependency names
this should really be only done once and re-used in all the other functions.
The text was updated successfully, but these errors were encountered: