Using the regular configure/make/install for a subport belonging to Python portgroup

Mojca Miklavec mojca at macports.org
Wed Aug 7 13:09:27 PDT 2013


On Wed, Aug 7, 2013 at 7:59 PM, Joshua Root wrote:
> On 2013-8-8 02:34 , Mojca Miklavec wrote:
>> Hello,
>>
>> I'm wondering if it is possible to use a normal configure/make/make
>> install route for a subport which otherwise belongs to the Python
>> PortGroup.
>>
>> I would like to create a port which first installs the libraries via
>> the usual configuration process and then a bunch of subports
>> py2X-portname that install python support for those libraries. If I
>> add "PortGroup python 1.0" on top, then setup.py is expected even for
>> the part that should be installed the usual way.
>
> Why would you want to use the portgroup if you're just going to override
> almost everything that it does?

- for "python.versions 26 27" (but that's trivial to do)
- for the subports py2X-foo, including things like ${python.bin} etc.

Honestly I don't know yet what exactly is needed for the python
builds. I tried to set the PortGroup inside the subport to get that
functionality, but it seems to me that this brings more problems than
it solves (it doesn't set the dependency on the right python version,
etc.). So I'll split the port into two, even if they share the same
distfile, version, description, etc.

> It's not hard to declare a bunch of
> subports called py2X-portname that just set configure.python or whatever
> the build systems needs.

Mojca


More information about the macports-dev mailing list