Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Oct 2021 20:03:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        python@FreeBSD.org
Subject:   [Bug 258891] devel/py-setuptools_scm: tries to git archive the entire ports tree on build
Message-ID:  <bug-258891-21822-g73XFTX39b@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-258891-21822@https.bugs.freebsd.org/bugzilla/>
References:  <bug-258891-21822@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258891

--- Comment #5 from Kai Knoblich <kai@FreeBSD.org> ---
Created attachment 228549
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D228549&action=
=3Dedit
DRAFT-workaround-for-py-setuptools_scm-v1.patch

(In reply to Robert Clausecker from comment #4)

I was able to verify the issue, thanks for the pointers. As you already
mentioned in comment #1 and comment #2, a broader workaround is required.=20

This is because ports, that have devel/py-setuptools_scm as a dependency, m=
ake
use of its entrypoints during build which triggers then "file_finder_git" i=
f a
".git" directory is found.

Tampering with the entrypoints of devel/py-setuptools_scm (e.g. to patch out
"file_finder_git") seems not be a good idea so the workaround with the
GIT_CEILING_DIRECTORIES environment might be a good workaround.

Attached is a preliminary patch that sets GIT_CEILING_DIRECTORIES if
"USE_PYTHON=3Ddistutils" is set.

First tests were ok, but I've to test it in more detail in the next few day=
s.
I'll also soon create a review so that others from python@ can also look at=
 it.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-258891-21822-g73XFTX39b>