azure-cli: remove blanket python2 compat logic

This commit is contained in:
Jonathan Ringer 2022-06-06 16:12:32 -07:00
parent c055b9b796
commit 40e0a8d9d5
No known key found for this signature in database
GPG key ID: 5C841D3CFDFEC4E0
3 changed files with 20 additions and 10 deletions

View file

@ -24,6 +24,12 @@ buildPythonPackage rec {
azure-mgmt-nspkg
];
preBuild = ''
rm -f azure_bdist_wheel.py
substituteInPlace setup.cfg \
--replace "azure-namespace-package = azure-mgmt-nspkg" ""
'';
pythonNamespaces = [ "azure.mgmt" ];
# has no tests

View file

@ -24,6 +24,12 @@ buildPythonPackage rec {
azure-mgmt-nspkg
];
preBuild = ''
rm -f azure_bdist_wheel.py
substituteInPlace setup.cfg \
--replace "azure-namespace-package = azure-mgmt-nspkg" ""
'';
pythonNamespaces = [ "azure.mgmt" ];
# has no tests

View file

@ -5,9 +5,7 @@ let
overrideAzureMgmtPackage = package: version: extension: sha256:
# check to make sure overriding is even necessary
if version == package.version then
package
else package.overrideAttrs(oldAttrs: rec {
package.overrideAttrs(oldAttrs: rec {
inherit version;
src = py.pkgs.fetchPypi {
@ -15,14 +13,14 @@ let
inherit version sha256 extension;
};
preBuild = ''
rm -f azure_bdist_wheel.py
substituteInPlace setup.cfg \
--replace "azure-namespace-package = azure-mgmt-nspkg" ""
'';
#preBuild = ''
# rm -f azure_bdist_wheel.py
# substituteInPlace setup.cfg \
# --replace "azure-namespace-package = azure-mgmt-nspkg" ""
#'';
# force PEP420
pythonNamespaces = [ "azure.mgmt" ];
## force PEP420
#pythonNamespaces = [ "azure.mgmt" ];
});
py = python3.override {