From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 33E34138010 for ; Sun, 28 Oct 2012 10:33:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 94135E0495; Sun, 28 Oct 2012 10:33:18 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 18CD2E0495 for ; Sun, 28 Oct 2012 10:33:18 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4DBC433D837 for ; Sun, 28 Oct 2012 10:33:17 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id DCB2AE5436 for ; Sun, 28 Oct 2012 10:33:15 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1351420432.f46c4057d76000ae020a57a4d5f19a9c4a93c113.mgorny@gentoo> Subject: [gentoo-commits] proj/gentoopm:master commit in: / X-VCS-Repository: proj/gentoopm X-VCS-Files: setup.py X-VCS-Directories: / X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: f46c4057d76000ae020a57a4d5f19a9c4a93c113 X-VCS-Branch: master Date: Sun, 28 Oct 2012 10:33:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: dc4b3c99-7ac3-411f-8283-a426b0f37bb3 X-Archives-Hash: 936acad7be03938122610f61360ce4a0 commit: f46c4057d76000ae020a57a4d5f19a9c4a93c113 Author: Michał Górny gentoo org> AuthorDate: Sun Oct 28 10:33:52 2012 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Oct 28 10:33:52 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoopm.git;a=commit;h=f46c4057 setup.py test: respect build_lib. --- setup.py | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 0f34a13..ddb119d 100755 --- a/setup.py +++ b/setup.py @@ -33,12 +33,16 @@ class TestCommand(Command): user_options = [] def initialize_options(self): - pass + self.build_base = None + self.build_lib = None def finalize_options(self): - pass + self.set_undefined_options('build', + ('build_lib', 'build_lib')) def run(self): + sys.path.insert(0, self.build_lib) + import unittest import gentoopm.submodules, gentoopm.tests