From owner-freebsd-python@freebsd.org Mon Jan 4 23:13:46 2016 Return-Path: Delivered-To: freebsd-python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A90A0A62441 for ; Mon, 4 Jan 2016 23:13:46 +0000 (UTC) (envelope-from mi+thun@aldan.algebra.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 8D7861784 for ; Mon, 4 Jan 2016 23:13:46 +0000 (UTC) (envelope-from mi+thun@aldan.algebra.com) Received: by mailman.ysv.freebsd.org (Postfix) id 8D257A62440; Mon, 4 Jan 2016 23:13:46 +0000 (UTC) Delivered-To: python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 745C1A6243F for ; Mon, 4 Jan 2016 23:13:46 +0000 (UTC) (envelope-from mi+thun@aldan.algebra.com) Received: from vms173009pub.verizon.net (vms173009pub.verizon.net [206.46.173.9]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 568DF1783 for ; Mon, 4 Jan 2016 23:13:46 +0000 (UTC) (envelope-from mi+thun@aldan.algebra.com) Received: from aldan.narawntapu ([100.1.236.52]) by vms173009.mailsrvcs.net (Oracle Communications Messaging Server 7.0.5.32.0 64bit (built Jul 16 2014)) with ESMTPA id <0O0G00I1MB6H5N20@vms173009.mailsrvcs.net> for python@FreeBSD.org; Mon, 04 Jan 2016 17:13:30 -0600 (CST) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=WpDWSorv c=1 sm=1 tr=0 a=UorMnhrCY2jH/mPejITChw==:117 a=LaogzpLLAAAA:8 a=oR5dmqMzAAAA:8 a=7aQ_Q-yQQ-AA:10 a=r77TgQKjGQsHNAKrUKIA:9 a=ZhmFIZa7V1OA4ultujYA:9 a=pILNOxqGKmIA:10 a=pGLkceISAAAA:8 a=3HoWq0ZhDahmbcmNidUA:9 a=FPe02PMBQfxva7Pu:21 a=_W_S_7VecoQA:10 Subject: Re: SOLVED: numpy would not load: libgcc_s vs. libgfortran To: Olivier Duchateau References: <568AA168.5090400@aldan.algebra.com> <20160104193453.2ae62e7a01ab0a0cd845e296@gmail.com> <568AC046.8040300@aldan.algebra.com> <20160104213150.4e47df03583e70cef356a51d@gmail.com> <568AE454.6010604@aldan.algebra.com> <568AEB8C.2000805@aldan.algebra.com> <20160104235913.13cbed5baa5b33b3bdef375f@gmail.com> Cc: python@FreeBSD.org From: "Mikhail T." Message-id: <568AFC99.1010001@aldan.algebra.com> Date: Mon, 04 Jan 2016 18:13:29 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-version: 1.0 In-reply-to: <20160104235913.13cbed5baa5b33b3bdef375f@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jan 2016 23:13:46 -0000 On 04.01.2016 18:59, Olivier Duchateau wrote: >> > I wonder, if this has something to do with my setting PYTHONPATH -- I >> > need the not-yet-installed mediagoblin packages to be found in ${WRKSRC} >> > by the tests. What is the proper way of to do this? > You can add module (and submodules) with sys module. > > For example in mediagoblin/tests/tools.py before line beginning by 'from mediagoblin ...' > > import sys > > # Full path of mediagoblin > sys.append('/spare/usr/ports/www/py-mediagoblin/work/mediagoblin-0.8.1/mediagoblin') Ouch! I was hoping, I could set an environment variable and be done with it -- something like PATH or LD_LIBRARY_PATH or TCLPATH... -mi