git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCHv2] remote-helpers: build in platform independent directory

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Sep 17, 2010, 21:00 UTC
Message-ID
<705f70e3df519fc28e551b4c0bd7512277e7a190.1284757060.git.git@drmicha.warpmail.net>

The build directory which is used by distutils depends on the platform (e.g. build/lib on Fedora 13, build/lib.linux-i686-2.6 on Ubuntu 9.04). But test-lib.sh expects to find the build in build/lib which can cause t5800-remote-helpers.sh to fail early.

Override distutils' choice so that the build is always in build/lib.
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
---
Sorry for the v2 so soon. With the previous version, the "make install" step
would still possibly create a platform dependent build dir. This works but
creates two lib dirs within build, which is unnecessary and confusing.
The solution with setup.cfg avoids this and is cleaner anyways.
 git_remote_helpers/setup.cfg |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
 create mode 100644 git_remote_helpers/setup.cfg
diff --git a/git_remote_helpers/setup.cfg b/git_remote_helpers/setup.cfg
new file mode 100644
index 0000000..4bff887
--- /dev/null
+++ b/git_remote_helpers/setup.cfg
@@ -0,0 +1,3 @@
+[build]
+build_purelib = build/lib
+build_platlib = build/lib
-- 
1.7.3.rc2.221.gbf93f
Next: Sverre Rabbelier
Message 1 of 3 in “[PATCHv2] remote-helpers: build in platform independent directory”
  1. Michael J GruberSep 17, 2010
  2. Sverre RabbelierSep 17, 2010
  3. Michael J GruberSep 18, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.