Skip to content

Use UV to run generategraphclient#91

Draft
cielavenir wants to merge 2 commits into
masterfrom
useUV
Draft

Use UV to run generategraphclient#91
cielavenir wants to merge 2 commits into
masterfrom
useUV

Conversation

@cielavenir
Copy link
Copy Markdown

No description provided.

@cielavenir cielavenir marked this pull request as draft April 28, 2026 02:16
@cielavenir
Copy link
Copy Markdown
Author

@hemangandhi is this useful?

Copy link
Copy Markdown

@hemangandhi hemangandhi left a comment

Choose a reason for hiding this comment

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

I think this is a good move but if @woswos wants to keep using venv, perhaps we should keep the old instructions too?

Comment thread README.md Outdated
Comment thread README.md
```bash
# delete the virtual environment
rm -rf ./.venv
PYTHONPATH=python uv run --with six==1.16.0 --with requests==2.27.1 --with graphql-core==3.2.0 --with typing_extensions==4.2.0 --with websockets==16.0 devbin/mujin_webstackclientpy_generategraphclient.py --url http://controller123 > python/mujinwebstackclient/webstackgraphclient.py
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

  1. Can we break this command into multiple lines?
  2. Is ``PYTHONPATH=python really needed?

Copy link
Copy Markdown
Author

@cielavenir cielavenir Apr 28, 2026

Choose a reason for hiding this comment

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

@woswos

Is PYTHONPATH=python really needed

yes, it replaces install .

Can we break this command into multiple lines?

as far as I investigate, it is not possible, the most realistic alternative is to migrate our code base to pyproject.toml or requirements.txt, but it also requires dropping distutils1

Footnotes

  1. mujinsimulator already dropped distutils jfyi

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we break this command into multiple lines?

No, I just meant adding \ to make it easier to read the command in the readme file. Something like:

PYTHONPATH=python uv run \
--with six==1.16.0 \
--with requests==2.27.1 \
--with graphql-core==3.2.0 \
--with typing_extensions==4.2.0 \
--with websockets==16.0 \
devbin/mujin_webstackclientpy_generategraphclient.py --url http://controller123 > python/mujinwebstackclient/webstackgraphclient.py

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Actually it turned out mujincommon.setuptools.Distribution works on setuptools, so I post #92

@cielavenir
Copy link
Copy Markdown
Author

postponing this pull request until we drop distutils at least in this repository.

@cielavenir cielavenir mentioned this pull request Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants