Skip to content

Commit

Permalink
Include sys/time.h for python3.13+ and fix PYTHONPATH ordering to all…
Browse files Browse the repository at this point in the history
…ow selection of other python configs (thanks @nchaimov)

Former-commit-id: ba1d83a99ad36b25494a8ab86e7baefa39204a9d
  • Loading branch information
wspear committed Feb 14, 2025
1 parent 575d9c6 commit c2bd478
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/Profile/ctau_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,11 @@ hpTimerUnit(void)
#else
#include <sys/resource.h>
#include <sys/times.h>
#if PY_VERSION_HEX > 0x030D0000 // Python versions after 3.13
// Include sys/time.h because pyport.h no longer does so.
#include <sys/time.h>
#endif
#endif

static PY_LONG_LONG
hpTimer(void)
{
Expand Down
2 changes: 1 addition & 1 deletion tools/src/tau_exec
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ else
fi

python_bindings=`echo $theBinding | sed -e 's/shared/bindings/'`
export PYTHONPATH=${BASEDIR}/lib:$BASEDIR/lib/$python_bindings:$PYTHONPATH
export PYTHONPATH=$BASEDIR/lib/$python_bindings:${BASEDIR}/lib:$PYTHONPATH

if [ "x$LD_LIBRARY_PATH" = "x" ] ; then
TAUEX_LD_LIBRARY_PATH=$BASEDIR/lib/$theBinding:$BASEDIR/lib
Expand Down

0 comments on commit c2bd478

Please sign in to comment.