joan2937 / lg

Linux C libraries and Python modules for manipulating GPIO
The Unlicense
57 stars 20 forks source link

Fix building the Python extension from other dirs #2

Closed waveform80 closed 3 years ago

waveform80 commented 3 years ago

Another patch derived from the packaging work. I've checked that this doesn't affect "normal" installations, but it's certainly necessary for building the Python extensions when the installation destination isn't included in the include and lib paths (which is probably rather abnormal for the make; make install procedure, but a typical scenario when building for packaging).