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 |