NetBSD Problem Report #50648

From www@NetBSD.org  Mon Jan 11 18:03:22 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.NetBSD.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 44C997ABE6
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 11 Jan 2016 18:03:22 +0000 (UTC)
Message-Id: <20160111180321.430E47ACA5@mollari.NetBSD.org>
Date: Mon, 11 Jan 2016 18:03:21 +0000 (UTC)
From: dhgutteridge@sympatico.ca
Reply-To: dhgutteridge@sympatico.ca
To: gnats-bugs@NetBSD.org
Subject: Clarifications for the pkgsrc guide concerning Python packaging
X-Send-Pr-Version: www-1.0

>Number:         50648
>Category:       pkg
>Synopsis:       Clarifications for the pkgsrc guide concerning Python packaging
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 11 18:05:00 +0000 2016
>Closed-Date:    Tue Jan 12 22:50:24 +0000 2016
>Last-Modified:  Tue Jan 12 22:50:24 +0000 2016
>Originator:     David H. Gutteridge
>Release:        current
>Organization:
>Environment:
>Description:
In 10.1.3 "Python modules and programs" of the pkgsrc guide, there are
a couple of misleading or incomplete statements. Right now, it says
"If the packaged software is a Python module, include
'../../lang/python/extension.mk'." Then further on, it discusses the
distinction between distutils.mk and egg.mk. In fact, both of those
make file components pull in extension.mk themselves. Ordinarily,
including extension.mk directly is not only unnecessary, but possibly
troublesome, since it can lead to plist-python.awk being called twice,
which breaks packaging. I think the guide should clarify that
extension.mk is only required directly if the package cannot make use
of one of distutils.mk or egg.mk.

Separately, it might be worth mentioning that Python packages that use
setuptools are supported via egg.mk. There are various references to
Python eggs, but no mention of setuptools itself. (And that both
distutils and setuptools use scripts normally named "setup.py".)

I can supply suggested changes if desired. I'm not sure if there are
extra wrinkles I'm not familiar with, though, this is all new to me.

>How-To-Repeat:
Read the guide and compare with sample packages.
>Fix:

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Tue, 12 Jan 2016 12:04:34 +0000
State-Changed-Why:
Better now?


From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/50648 CVS commit: pkgsrc/doc/guide/files
Date: Tue, 12 Jan 2016 12:03:39 +0000

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Tue Jan 12 12:03:39 UTC 2016

 Modified Files:
 	pkgsrc/doc/guide/files: creating.xml

 Log Message:
 Clarify python *.mk usage.
 Addresses PR 50648 by David H. Gutteridge.


 To generate a diff of this commit:
 cvs rdiff -u -r1.19 -r1.20 pkgsrc/doc/guide/files/creating.xml

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "David H. Gutteridge" <dhgutteridge@sympatico.ca>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/50648 (Clarifications for the pkgsrc guide concerning Python packaging)
Date: Tue, 12 Jan 2016 16:42:36 -0500

 That's a big improvement, thanks!

 Dave

State-Changed-From-To: feedback->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Tue, 12 Jan 2016 22:50:24 +0000
State-Changed-Why:
Better now :) Thanks for the quick feedback!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.