#NEWLINE# @ skip_on_win #NEWLINE# def test_pip_debian_install( tmpdir ) : #NEWLINE# #INDENT# local = tmpdir . mkdir ( 'local' ) #NEWLINE# lib = tmpdir . mkdir ( 'lib' ) #NEWLINE# local . join ( 'lib' ) . mksymlinkto ( lib ) #NEWLINE# python_dir = tmpdir . join ( 'local' , 'lib' , 'python2.7' , 'site-packages' , 'qibuild' ) #NEWLINE# python_dir . ensure ( '__init__.py' , file = True ) #NEWLINE# cmake_dir = tmpdir . join ( 'share' , 'cmake' ) #NEWLINE# cmake_dir . ensure ( 'qibuild' , 'qibuild-config.cmake' , file = True ) #NEWLINE# res = qibuild . cmake . find_installed_cmake_qibuild_dir ( python_dir . strpath ) #NEWLINE# assert ( res == lib . strpath )