Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdded build steps for windows #7
Conversation
| - Next we need to install openssl since RustPython depends on it. However the build process for openssl is not very straight forward. We employ [Vcpkg](https://github.com/Microsoft/vcpkg) to help us. [Clone Vcpkg](https://github.com/Microsoft/vcpkg "Vcpkg github repository") into a folder of your choosing. I will use ```C:\vcpkg\``` in this example. Following vcpkg's installation guide, in the cloned directory | ||
|
|
||
| From your Powershell run the scripts. | ||
| ```Powershell | ||
| PS C:\vcpkg> .\bootstrap-vcpkg.bat | ||
| PS C:\vcpkg> .\vcpkg integrate install | ||
| ``` | ||
|
|
||
| Finally we install openssl by running | ||
| ```Powershell | ||
| PS C:\vcpkg> .\vcpkg install openssl:x64-windows | ||
| ``` | ||
| Get some coffee for this one. | ||
| After the installation is done, there will be a created path | ||
| ``` | ||
| C:\vcpkg\installed\x64-windows\ | ||
| ``` | ||
| Edit your User environment Variables or System Variables, whichever you prefer and set `OPENSSL_DIR` to this path |
This comment has been minimized.
This comment has been minimized.
coolreader18
Apr 12, 2020
Member
I think this isn't necessary anymore since RustPython/RustPython#1841, as far as I can tell all that's necessary is a perl installation like Strawberry Perl in order to build openssl.
This comment has been minimized.
This comment has been minimized.
| copy the `.dll` files `libcrypto-1_1-x64.dll` and `libssl-1_1-x64.dll` from | ||
| ``` | ||
| C:\vcpkg\installed\x64-windows\bin | ||
| ``` | ||
| or the `bin` folder of wherever you installed openssl to into the ```targets/release``` directory. |
This comment has been minimized.
This comment has been minimized.
coolreader18
Apr 12, 2020
Member
I think this shouldn't be necessary either, as openssl is statically linked.
This comment has been minimized.
This comment has been minimized.
Joetib
Apr 13, 2020
Author
Until I copied it, I didn't get the built exe running. At least that was for me.
| ``` | ||
| or the `bin` folder of wherever you installed openssl to into the ```targets/release``` directory. | ||
|
|
||
| ## Now run *`ruspython.exe`* and enjoy it's beauty. |
This comment has been minimized.
This comment has been minimized.
coolreader18
Apr 12, 2020
Member
:)
| ## Now run *`ruspython.exe`* and enjoy it's beauty. | |
| ## Now run *`rustpython.exe`* and enjoy it's beauty. |
This comment has been minimized.
This comment has been minimized.
|
Sorry for taking a bit to get to this, I think the installation steps have been simplified since you wrote this, so hopefully it'll be easier to install on windows. |
|
@coolreader18 |
|
After this long I think it's not needed anymore. I'll close this by the end of the day if I do not hear otherwise. |
|
Hi, thanks for contributing! Sorry for the delay. We recently discussed the windows situation. We decided that the openssl module will be disabled on windows by default, so people get a better out of box experience on windows (allthough it is without the openssl module). Still I think this post is relevant to describe how to build with all features enabled on windows. Maybe the title should be changed into |
|
Okay @windelbouwman I'll get to work with it. Sorry I did not get to this earlier but I haven't checked my mail lately and I was loosing hope of this being accepted. I'm off to work. |
Joetib commentedApr 4, 2020
Added Detailed steps to build RustPython on a windows environment.