File: build-pyversion.patch

package info (click to toggle)
pyobjcryst 2024.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,964 kB
  • sloc: cpp: 5,824; python: 3,423; makefile: 17; sh: 6
file content (24 lines) | stat: -rw-r--r-- 726 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Stefano Rivera <stefanor@debian.org>
Date: Fri, 6 Jan 2023 22:44:27 -0400
Subject: Include the Python version in the builddir

This allows us to build for multiple Python versions at once.

Forwarded: not-needed
---
 SConstruct | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/SConstruct b/SConstruct
index efdec18..d7ef934 100644
--- a/SConstruct
+++ b/SConstruct
@@ -230,7 +230,7 @@ else:
     env.Append(CPPPATH=[pjoin(env['prefix'], 'include')])
     env.Append(LIBPATH=[pjoin(env['prefix'], 'lib')])
 
-builddir = env.Dir('build/%s-%s' % (env['build'], platform.machine()))
+builddir = env.Dir('build/%s-%s' % (env['build'], pyversion))
 
 Export('env', 'pyconfigvar', 'pyoutput', 'pyversion')