You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+35-15Lines changed: 35 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# LPython
2
2
3
3
LPython is an ahead-of-time compiler for Python written in C++. It is currently in alpha
4
-
stage and under heavy development. LPython works on Windows, macOS and Linux.
4
+
stage and under heavy development. LPython works on Windows, macOS and Linux.
5
5
6
6
Some of the goals of LPython include:
7
7
@@ -26,15 +26,36 @@ LFortran, see that project for a list of sponsors.
26
26
27
27
Follow the steps below to install and run LPython on Linux, Windows or macOS.
28
28
29
-
## Prerequisites
30
-
-### Install Conda
29
+
## Using package managers
30
+
31
+
You can install lpython using conda-package managers.
32
+
33
+
```shell
34
+
# conda
35
+
conda install -c conda-forge lpython
36
+
37
+
# mamba
38
+
mamba install -c conda-forge lpython
39
+
40
+
# micromamba
41
+
micromamba install -c conda-forge lpython
42
+
43
+
# pixi (global installation across all environments)
44
+
pixi global install lpython
45
+
46
+
```
47
+
48
+
## Building from source
49
+
50
+
### Prerequisites
51
+
-#### Install Conda
31
52
Follow the instructions provided [here](https://github.com/conda-forge/miniforge/#download) to install Conda on your platform (Linux, macOS and Windows) using a conda-forge distribution called Miniforge.
32
-
53
+
33
54
For Windows, these are additional requirements:
34
55
- Miniforge Prompt
35
56
- Visual Studio (with "Desktop Development with C++" workload)
36
57
37
-
-### Set up your system
58
+
-####Set up your system
38
59
- Linux
39
60
- Run the following command to install some global build dependencies:
40
61
@@ -73,22 +94,22 @@ Follow the steps below to install and run LPython on Linux, Windows or macOS.
- Optionally, you can change the directory to a Windows location using `cd /mnt/[drive letter]/[windows location]`. For e.g. - `cd mnt/c/Users/name/source/repos/`.
78
99
79
-
80
-
- ### Clone the LPython repository
100
+
101
+
- #### Clone the LPython repository
81
102
Make sure you have `git` installed. Type the following command to clone the repository:
@@ -107,7 +128,7 @@ Follow the steps below to install and run LPython on Linux, Windows or macOS.
107
128
./build1.sh
108
129
```
109
130
110
-
- ### Windows
131
+
- #### Windows
111
132
- Create a Conda environment using the pre-existing file:
112
133
113
134
```bash
@@ -121,7 +142,7 @@ Follow the steps below to install and run LPython on Linux, Windows or macOS.
121
142
call build0.bat
122
143
call build1.bat
123
144
```
124
-
- ### Windows with WSL
145
+
- #### Windows with WSL
125
146
126
147
- Activate the Conda environment:
127
148
```bash
@@ -149,13 +170,12 @@ Do not forget to clean your history, see [example](./doc/src/rebasing.md).
149
170
See the [CONTRIBUTING](CONTRIBUTING.md) document for more information.
150
171
151
172
## Found a bug?
152
-
Please report any bugs you find at our issue tracker [here](https://github.com/lcompilers/lpython/issues). Or, even better, fork the repository on GitHub and create a Pull Request (PR).
173
+
Please report any bugs you find at our issue tracker [here](https://github.com/lcompilers/lpython/issues). Or, even better, fork the repository on GitHub and create a Pull Request (PR).
153
174
154
175
We welcome all changes, big or small. We will help you make a PR if you are new to git.
155
176
156
177
If you have any questions or need help, please ask us at [Zulip](https://lfortran.zulipchat.com/) or on our [mailinglist](https://groups.io/g/lfortran).
157
178
158
-
159
179
# Star History
160
180
161
181
[](https://star-history.com/#lcompilers/lpython&Date)
0 commit comments