Commit d891cb8
python: fix in-source python builds
the Makefile for the python bindings does a check for out of source
builds to see if it should copy the .pyx file. However, if `srcdir` and
`builddir` are different strings but point to the same directory, the
`cp` command will fail.
This patch makes the build step more robust by checking if the .pyx file
exists in the `builddir` (will resolve to true if srcdir==builddir).
Otherwise, it will copy the file over.
Signed-off-by: Caetano Melone <melone1@llnl.gov>
Signed-off-by: Paul Moore <paul@paul-moore.com>1 parent 8094cf5 commit d891cb8
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
0 commit comments