Solved: Address build error related to overwritten 'setup.cfg'

Following r26470, we update the version of setuptools used in Slicer, as a side effect you may get an error like the one reported below.

To address the problem

cd Slicer-Superbuild/python-setuptools
git reset --hard  HEAD

Error:

error: Your local changes to the following files would be overwritten by checkout:
	setup.cfg
Please, commit your changes or stash them before you can switch branches.
Aborting
CMake Error at /home/jcfr/Projects/Slicer-2-Qt5-VTK8-build/python-setuptools-prefix/tmp/python-setuptools-gitupdate.cmake:147 (message):
  Failed to checkout tag:

I’m getting this error too frequently and it is quite annoying. Would it be possible to patch the file outside the source tree or somehow suppress this error automatically?

We could also make a release and download a zip of the version of setuptools.

Yes, that would work.

@jcfr Could you please address this issue? I use scripts for building Slicer and this bug keeps making those fail and require me to go manually and fix the problem. I’ve also added a ticket to track its resolution: https://issues.slicer.org/view.php?id=4466

@jcfr has fixed the problem in recent nightly version.

2 Likes