Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the issue about setup.py #500

Closed
dedean opened this issue May 17, 2024 · 7 comments
Closed

the issue about setup.py #500

dedean opened this issue May 17, 2024 · 7 comments
Labels
question Further information is requested

Comments

@dedean
Copy link

dedean commented May 17, 2024

image
how to setup

@mauvilsa
Copy link
Member

Any particular reason why you are using such an old version of jsonargparse? The latest versions don't even have a setup.py file. The repo now follows the new PEP 621 standard, using a pyproject.toml file.

It is not clear exactly what you want to do. For using the package the recommended way is to pip install .... Setting up for development is explained in CONTRIBUTING.rst.

@mauvilsa mauvilsa added the question Further information is requested label May 17, 2024
@dedean
Copy link
Author

dedean commented May 17, 2024 via email

@mauvilsa
Copy link
Member

From source the package can be installed like

pip install .

If you want optional dependencies, then you can do for example

pip install ".[signatures]"

@dedean
Copy link
Author

dedean commented May 17, 2024 via email

@mauvilsa
Copy link
Member

For example, for the latest version you can (linux/mac):

virtualenv -p python3 venv
source venv/bin/activate
wget https://files.pythonhosted.org/packages/19/ee/84ddf56631ae11c7751a1e5ab543803c6c8f7857d41f91ee01b1b886f0eb/jsonargparse-4.28.0.tar.gz
tar xzf jsonargparse-4.28.0.tar.gz
cd jsonargparse-4.28.0
pip install .

But, if pip does not get access to the internet, the install will fail trying to fetch dependencies. The only required dependency is pyyaml, so you would have to download and manually install that one beforehand. If you want more optional dependencies, then you would need to install each of them manually.

@dedean
Copy link
Author

dedean commented May 17, 2024 via email

@mauvilsa
Copy link
Member

mauvilsa commented Jun 9, 2024

Hopefully this helped! Closing.

@mauvilsa mauvilsa closed this as completed Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants