Skip to content

{Packaging} Trim mgmt SDKs#23946

Merged
jiasli merged 3 commits intoAzure:devfrom
jiasli:trim-sdk
Oct 27, 2022
Merged

{Packaging} Trim mgmt SDKs#23946
jiasli merged 3 commits intoAzure:devfrom
jiasli:trim-sdk

Conversation

@jiasli
Copy link
Member

@jiasli jiasli commented Sep 20, 2022

Description

Reduce Azure CLI's package size per

This is because the bundled Python SDKs contain lots of code which is not used by Azure CLI (Azure/azure-sdk-for-python#11149).

This PR adds trim-sdk.py script to trim Python SDKs by

  • Removing aio folders
  • Removing unused API versions

@ghost ghost requested review from kairu-ms, wangzelin007 and yonzhan September 20, 2022 08:18
@ghost ghost added the Auto-Assign Auto assign by bot label Sep 20, 2022
@ghost ghost assigned jiasli Sep 20, 2022
@ghost ghost added this to the Sep 2022 (2022-10-12) - For Ignite milestone Sep 20, 2022
@ghost ghost added the Packaging label Sep 20, 2022
Comment on lines 421 to 429
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ad-hoc API versions should be removed:

@jiasli
Copy link
Member Author

jiasli commented Sep 20, 2022

Build Windows MSI task in CI has been reduced from 16m 54s to 11m 38s.

_LOGGER.info(f"{size_in_mb:.2f} MB, {count} files")


def _get_all_sdks_to_trim():
Copy link
Member

@jsntcy jsntcy Oct 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jiasli, It seems this function is not used, do we need it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. It's not. I keep it there so that we can trim all SDKs in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Auto-Assign Auto assign by bot Packaging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants