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

Config: Added zstd-static package to the conda environment configuration files #2540

Merged
merged 6 commits into from
Feb 18, 2024

Conversation

kmr-srbh
Copy link
Contributor

Also incorporated changes to installation-docs suggested in #2537 .

- toml
- zlib
- git
- flex
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is flex needed? I don't think it's needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh. I am sorry for the mistake. I recall installing flex when I ran into an error with bison. I recalled this thread.

I am making the amends.

@kmr-srbh kmr-srbh changed the title Added flex and zstd-static packages to all conda environment configuration files. Added zstd-static packages to all conda environment configuration files. Feb 17, 2024
@kmr-srbh kmr-srbh changed the title Added zstd-static packages to all conda environment configuration files. Added zstd-static package to the conda environment configuration files. Feb 17, 2024
@kmr-srbh
Copy link
Contributor Author

kmr-srbh commented Feb 17, 2024

@certik Could you please investigate as to why one of the above test failed? I checked the log and the workflow file. Nothing seems to explain the reason for only 1 test failing for Python 3.11.

Copy link
Contributor

@certik certik 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 that's fine.

@certik
Copy link
Contributor

certik commented Feb 17, 2024

The failure is due to #2542.

- ninja
- numpy
- xonsh
- flake8
Copy link
Collaborator

Choose a reason for hiding this comment

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

I am unsure of the changes in conda for windows.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In both the files, only the zstd-static package was added.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ok, good.

Comment on lines +11 to +15
- cmake
- numpy
- flake8
- setuptools
- bison=3.4
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it needed to change the order of specifying dependencies here? It seems hard to interpret which packages where removed and which ones were added.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am sorry for the inconvenience. I did this to improve readability.

@@ -36,16 +36,10 @@ Follow the steps below to install and run LPython on Linux, Windows or macOS.

- ### Set up your system
- Linux
- Make sure you have `g++` and `cmake` installed. If not, install them using the below command:
- Run the following command to install some global build dependencies:
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the first step in linux should be creating the conda environment. The next step can be installing the required global build dependencies.

Similarly, update for docs/src/installation.md.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I understand your point @Shaikh-Ubaid, but moving this section will logically separate the conda environment creation part for Linux and Windows. As installing the global dependencies takes some time for a new contributor, I let it remain at the top.

The user can perhaps download Miniforge in the meantime. 😄

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ok, it seems fine for now.

Copy link
Collaborator

@Shaikh-Ubaid Shaikh-Ubaid left a comment

Choose a reason for hiding this comment

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

It looks good to me. Thanks for this!

@Shaikh-Ubaid Shaikh-Ubaid enabled auto-merge (squash) February 18, 2024 07:38
@Shaikh-Ubaid Shaikh-Ubaid merged commit 6379e73 into lcompilers:main Feb 18, 2024
13 checks passed
Agent-Hellboy pushed a commit to Agent-Hellboy/lpython that referenced this pull request Mar 5, 2024
…les. (lcompilers#2540)

* Added `flex` and `zstd-static=1.5.5` packages.

* Added `flex` and `zstd-static=1.5.5` packages.

* Incorporated suggestions from lcompilers#2537

Moved global package installations to conda environment.

* Updated README.md to reflect changes suggested in lcompilers#2537

* Remove `flex`

* Remove `flex`
hankluo6 pushed a commit to hankluo6/lpython that referenced this pull request Mar 8, 2024
…les. (lcompilers#2540)

* Added `flex` and `zstd-static=1.5.5` packages.

* Added `flex` and `zstd-static=1.5.5` packages.

* Incorporated suggestions from lcompilers#2537

Moved global package installations to conda environment.

* Updated README.md to reflect changes suggested in lcompilers#2537

* Remove `flex`

* Remove `flex`
@kmr-srbh kmr-srbh changed the title Added zstd-static package to the conda environment configuration files. Added zstd-static package to the conda environment configuration files Mar 13, 2024
@kmr-srbh kmr-srbh changed the title Added zstd-static package to the conda environment configuration files Config: Added zstd-static package to the conda environment configuration files Mar 13, 2024
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