Gentoo Archives: gentoo-user

From: Thomas Mueller <mueller6724@×××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] setup.py question: platform.system()
Date: Thu, 20 Jun 2019 22:37:43
Message-Id: 20190620223738.725A6E08FE@pigeon.gentoo.org
1 I was just looking through gentoo/setup.py and find something that arouses my curiosity.
2
3 I see
4
5 if platform.system() == 'Linux':
6 x_c_helpers.update({
7 'portage.util.file_copy.reflink_linux': [
8 'src/portage_util_file_copy_reflink_linux.c',
9 ],
10 })
11
12 Question that comes up is, what if platform system is something other than Linux, such as FreeBSD, NetBSD or other.
13
14 How would setup.py handle that? Would it attempt to set up portage-style package manager for FreeBSD, NetBSD or other, would it set up something for Linux portage, or would it just fail?
15
16 Tom