From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DMARC_NONE,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=4.0.0 Received: from vsmtp.wi.securepipe.com (vsmtp.wi.securepipe.com [64.73.37.228]) by chiba.3jane.net (Postfix) with SMTP id 7A14FAC6C1 for ; Sun, 28 Apr 2002 11:29:02 -0500 (CDT) Received: (qmail 10407 invoked from network); 28 Apr 2002 16:14:25 -0000 Received: from unknown (HELO honker.jamponi.net) (216.165.181.157) by 0 with SMTP; 28 Apr 2002 16:14:25 -0000 Date: Sun, 28 Apr 2002 11:28:35 -0500 From: Jon Nelson To: gentoo-dev@gentoo.org Message-Id: <20020428112835.3cbcd741.jnelson@jamponi.net> X-Mailer: Sylpheed version 0.7.5 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [gentoo-dev] packages using DistUtils Sender: gentoo-dev-admin@gentoo.org Errors-To: gentoo-dev-admin@gentoo.org X-BeenThere: gentoo-dev@gentoo.org X-Mailman-Version: 2.0.6 Precedence: bulk Reply-To: gentoo-dev@gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Gentoo Linux developer list List-Unsubscribe: , List-Archive: X-Archives-Salt: 5fe9683d-625f-4b82-a483-7ed34cddb482 X-Archives-Hash: b9d76d579f92ff3651afc2b6d8f82755 I'll try to say this without offending anybody. Any package that uses DistUtils (ie, you have build or install lines that use 'setup.py'), *please* understand that the following is *incorrect*: python setup.py --prefix=${D}/usr build || die (or install) That sets the *prefix* to ${D}/usr, which for most things isn't an issue, but the *prefix* is embedded in some apps. The *correct* way to build or install is to use the following form: src_compile() { python setup.py --prefix=/usr build || die } src_install() { python setup.py --root=${D} --prefix=/usr install || die # etc... } The reason why has to do with the same reasons why doing a ./configure with a --prefix of ${D}/usr is a *bad* idea -- it is *not* the prefix (the prefix is /usr). Additionally, even though DistUtils is nice enough to build during install if not already built, it's generally good practice to have a separate build in src_compile, but that is less critical than the --prefix issue. Thanks! -- Pound for pound, the amoeba is the most vicious animal on earth. Jon Nelson C and Python Code Gardener