Date: Wed, 16 Jan 2008 09:08:12 -0500 From: "Jim Stapleton" <stapleton.41@gmail.com> To: "freebsd ports" <freebsd-ports@freebsd.org> Subject: Re: second question: dependancies not being checked. Message-ID: <80f4f2b20801160608s1941dd4asd4de8283331f1eb1@mail.gmail.com> In-Reply-To: <80f4f2b20801160600o7e15b176i1f88a0f84fd7c07c@mail.gmail.com> References: <80f4f2b20801160600o7e15b176i1f88a0f84fd7c07c@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Sorry I tabbed in editing and managed to accidentally sent. Is it safe to assume that it is not bailing on the lack of this library because there is no devel/py-extended-threading yet, or am I missing something else. Sorry again for the goof/double-message. Thank you, -Jim Stapleton Makefile: ======================================== # New ports collection makefile for: py-modularapp # Date created: 14 Jan 2008 # Whom: James Stapleton <fbsdporter@var-dev.net> # # $FreeBSD$ # PORTNAME= py_modularapp PORTVERSION= 0.2 CATEGORIES= devel python MASTER_SITES+= http://www.var-dev.net/programming/python/modularapp/ \ http://www.var-dev.com/programming/python/modularapp/ \ http://www.var-dev.org/programming/python/modularapp/ DISTNAME= py_modularapp-0.2 MAINTAINER= fbsdporter@var-dev.net COMMENT= A library for trivially extensible python plugins and applications USE_PYTHON= 2.3+ BUILD_DEPENDS+= ${PYTHON_SITELIBDIR}/extended_threading/rwrlock.py:/${PORTSDIR}/devel/py-extended-threading #alt1 #BUILD_DEPENDS+= ${NONEXISTENT}:${PORTSDIR}/devel/py-extended-threading RUN_DEPENDS= ${BUILD_DEPENDS} USE_BZIP2= YES do-build: (cd ${WRKDIR}/py-modularapp/py_modularapp/ && \ echo "import sys; import py_compile; for f in sys.argv: py_compile.compile(f)" | ${PYTHON_CMD} *.py) do-install: ${MKDIR} ${PYTHON_SITELIBDIR}/py_modularapp/ (cd ${WRKDIR}/py-modularapp/py_modularapp/ && \ ${CP} -rfv * ${PYTHON_SITELIBDIR}/py_modularapp/) .include <bsd.port.mk> ======================================== On Jan 16, 2008 9:00 AM, Jim Stapleton <stapleton.41@gmail.com> wrote: > I'm having trouble getting a requirement to work. I'm trying to build > the port I'm developing without the dependancy installed, expecting to > get a related error. This looks like what I've seen in other ports, > and what I've seen in the documentation but it does not function in > mine: > > BUILD_DEPENDS+= > ${PYTHON_SITELIBDIR}/rwrlock.py/${PORTSDIR}/devel/py-extended-threading > RUN_DEPENDS= ${BUILD_DEPENDS} > > > > Now, my py-extended-threading module has not been put in the ports > tree yet (which may be the issue), but I'm getting a python > compilation error here, which leads me to suspect the dependency is > not being checked: > > error > ======================================== > sjss@elrond 08:57:31 (1) ~/dev/ports/py-modularapp > make > ===> Building for py_modularapp-0.2 > (cd /data/mydocs/dev/ports/py-modularapp/work/py-modularapp/py_modularapp/ > && echo "import sys; import py_compile; for f in sys.argv: > py_compile.compile(f)" | /usr/local/bin/python2.5 *.py) > Traceback (most recent call last):ts/py-modularapp > ls /usr/ports/www > | grep kon > File "__init__.py", line 9, in <module> > import tapp as TA > File "/data/mydocs/dev/ports/py-modularapp/work/py-modularapp/py_modularapp/tapp.py", > line 13, in <module> > import extended_threading as ethr > ImportError: No module named extended_threading > *** Error code 1 > > Stop in /data/mydocs/dev/ports/py-modularapp. > ======================================== >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?80f4f2b20801160608s1941dd4asd4de8283331f1eb1>