[OpenWrt-Devel] building python3 packages outside of lang/python3

Michael Richardson mcr at sandelman.ca
Sun May 3 13:31:22 EDT 2020


Alexandru Ardelean <ardeleanalex at gmail.com> wrote:
    > you'll have to settle for some sort of absolute path if you need those
    > files from the packages feed in some other feed if you take a look at
    > https://github.com/openwrt/packages/blob/master/lang/python/README.md
    > there's a suggestion: PYTHON3_PACKAGE_MK:=$(wildcard
    > $(TOPDIR)/feeds/*/lang/python/python3-package.mk) [ similar can be done
    > for pypi.mk ]

I guess the wildcard is because one can't depend upon the name by which each
of the feeds is included in the feeds.conf.

    >> I tried the whole thing, but that didn't work.
    >>
    >> I settled on: include
    >> $(INCLUDE_DIR)/../feeds/packages/lang/python/python3-package.mk
    >>
    >> which I found ugly, but it worked.

    > yes & no; you can choose to do a direct include like [1]

If the Makefile include path were to include all the top
levels of all the feeds (feeds/* ), then:
       include lang/python/python3-package.mk

would work, and it would pick up whichever one was first in the list of
feeds.

--
]               Never tell me the odds!                 | ipv6 mesh networks [
]   Michael Richardson, Sandelman Software Works        |    IoT architect   [
]     mcr at sandelman.ca  http://www.sandelman.ca/        |   ruby on rails    [


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list