Closed snorfalorpagus closed 9 years ago
I think doing git reset --hard
instead of git checkout
might work to go between branches. Can you try out #172 (not tested in the context of your project).
Closed by #172.
Confirmed that https://github.com/spacetelescope/asv/pull/172 fixes this. Thanks!
I'm trying to create a benchmarking suite for the Shapely module.
Shapely uses cython to link to an external shared library. For those not familiar with this, a
.pyx
file (written in a superset of the python language) is parsed into a.c
file, which is then compiled. In older versions of Shapely the.c
file produced was included in the repository, so that people without cython installed could still build the C extension. In more recent versions of the repository the.c
file is not included, and must be regenerated (done insetup.py
). This seems to cause problems for asv - see the error below. Here a more recent commit has caused the creation of the.c
file, which then causes git to complain as it refuses to then checkout data that would overwrite some uncomitted data.Is it possible to get asv to run a custom command between checkouts via a hook or similar, so that this file could be deleted if it already exists (with
git reset
?).Current, without
_speedups.c
: https://github.com/Toblerity/Shapely/tree/0bd4a08bbd110f84573f54190e9fd4070b02ab0e/shapely/speedups Old, with_speedups.c
: https://github.com/Toblerity/Shapely/tree/b4fb903ba957f84f286e2387987166415d3d19e1/shapely/speedups