pythonPackages.azure-mgmt-common: fix namespace issue

This commit is contained in:
Jonathan Ringer 2019-09-13 17:37:55 -07:00
parent a0440ad8b5
commit fdd6245e53

View File

@ -28,6 +28,7 @@ buildPythonPackage rec {
postInstall = if isPy3k then "" else ''
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/mgmt/__init__.py
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py
'';
doCheck = false;