Move reproject imports to function level

reproject is not available on some old Linux distributions that
we have to support still.
11 jobs for wcsaxes-reproject in 41 minutes and 5 seconds (queued for 2 seconds)
latest
Status Job ID Name Coverage
  Nightly
passed #35598
macos
nightly:macos

00:41:05

passed #35595
nightly:mpi:jessie

00:37:09

passed #35596
nightly:openmp:jessie

00:37:13

passed #35597
nightly:python3:stretch

00:38:17

failed #35592
allowed to fail
nightly:top-level:artful

00:22:40

failed #35593
allowed to fail
nightly:top-level:buster

00:24:54

passed #35594
nightly:top-level:clang

00:37:28

passed #35588
nightly:top-level:el7

00:35:21

passed #35589
nightly:top-level:stretch

00:38:07

passed #35590
nightly:top-level:trusty

00:28:47

passed #35591
nightly:top-level:xenial

00:30:58

 
Name Stage Failure
failed
nightly:top-level:buster Nightly
Makefile:403: recipe for target 'check-recursive' failed
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory '/builds/leo-singer/lalsuite/lalsuite-6.48.1/_build/sub'
make[1]: *** [check] Error 2
Makefile:677: recipe for target 'check' failed
make[1]: Leaving directory '/builds/leo-singer/lalsuite/lalsuite-6.48.1/_build/sub'
Makefile:594: recipe for target 'distcheck' failed
make: *** [distcheck] Error 1
ERROR: Job failed: exit code 1
failed
nightly:top-level:artful Nightly
make[2]: *** [check-recursive] Error 1
Makefile:403: recipe for target 'check-recursive' failed
make[2]: Leaving directory '/builds/leo-singer/lalsuite/lalsuite-6.48.1/_build/sub'
Makefile:677: recipe for target 'check' failed
make[1]: *** [check] Error 2
make[1]: Leaving directory '/builds/leo-singer/lalsuite/lalsuite-6.48.1/_build/sub'
Makefile:594: recipe for target 'distcheck' failed
make: *** [distcheck] Error 1
ERROR: Job failed: exit code 1