second question: dependancies not being checked.
Jim Stapleton
stapleton.41 at gmail.com
Wed Jan 16 06:08:14 PST 2008
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 at 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 at 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 at 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 at 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.
> ========================================
>
More information about the freebsd-ports
mailing list