Make sure py-entrypoints runs its unit tests (#4347)

This commit is contained in:
Adam J. Stewart 2017-05-30 14:57:53 -05:00 committed by GitHub
parent 7e3a11b46a
commit 421d8ea316

View File

@ -23,6 +23,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
from spack import *
from spack.package import PackageBase
class PyEntrypoints(PythonPackage):
@ -45,3 +46,8 @@ class PyEntrypoints(PythonPackage):
def install(self, spec, prefix):
pip = which('pip')
pip('install', self.stage.archive_file, '--prefix={0}'.format(prefix))
run_after('install')(PackageBase._run_default_install_time_test_callbacks)
# Check that self.prefix is there after installation
run_after('install')(PackageBase.sanity_check_prefix)