alnzng opened a new pull request, #272:
URL: https://github.com/apache/flink-agents/pull/272

   <!--
   * Thank you very much for contributing to Flink Agents.
   * Please add the relevant components in the PR title. E.g., [api], 
[runtime], [java], [python], [hotfix], etc.
   -->
   
   <!-- Please link the PR to the relevant issue(s). Hotfix doesn't need this. 
-->
   Linked issue: #xxx
   
   ### Purpose of change
   
   <!-- What is the purpose of this change? -->
   
   Users may encounter the following error when running `tools/build.sh` 
multiple times across different branches (e.g., switching between `main` and 
`release-0.1`):
   
   ```
   removing build/bdist.macosx-11.0-arm64/wheel
   Successfully built flink_agents-0.2.dev0.tar.gz and 
flink_agents-0.2.dev0-py3-none-any.whl
   error: Requirements contain conflicting URLs for package `flink-agents`:
   - 
file:///Users/alazhang/Workspaces/Java/flink-agents/python/dist/flink_agents-0.1.0-py3-none-any.whl
   - 
file:///Users/alazhang/Workspaces/Java/flink-agents/python/dist/flink_agents-0.2.dev0-py3-none-any.whl
   ```
   
   This occurs because old wheel files from previous builds accumulate in 
`python/dist/`, causing version conflicts during installation. The fix cleans 
the `dist/` directory before building to ensure only the current version's 
artifacts are present.
   
   ### Tests
   
   <!-- How is this change verified? -->
   Test the changes locally
   
   ### API
   
   <!-- Does this change touches any public APIs? -->
   n/a
   
   ### Documentation
   
   <!-- Should this change be covered by the user documentation?-->
   n/a
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to