Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Added build steps for windows#7

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
Joetib wants to merge1 commit intoRustPython:masterfromJoetib:master

Conversation

@Joetib
Copy link

Added Detailed steps to build RustPython on a windows environment.

youknowone reacted with thumbs up emoji
Comment on lines +18 to +35
- 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
Copy link
Member

Choose a reason for hiding this comment

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

I think this isn't necessary anymore sinceRustPython/RustPython#1841, as far as I can tell all that's necessary is a perl installation likeStrawberry Perl in order to build openssl.

Copy link
Author

Choose a reason for hiding this comment

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

Oops didn't catch that.
I will work on that.

Comment on lines +55 to +59
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.
Copy link
Member

Choose a reason for hiding this comment

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

I think this shouldn't be necessary either, as openssl is statically linked.

Copy link
Author

Choose a reason for hiding this comment

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

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. No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

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

:)

Suggested change
##Now run*`ruspython.exe`* and enjoy it's beauty.
##Now run*`rustpython.exe`* and enjoy it's beauty.

Copy link
Author

Choose a reason for hiding this comment

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

My bad, Fixing that right up.

@coolreader18
Copy link
Member

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.

@Joetib
Copy link
Author

Joetib commentedApr 13, 2020
edited
Loading

@coolreader18
I get the feeling I need to ask whether the post is still needed.
Is it?

@Joetib
Copy link
Author

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.

@windelbouwman
Copy link

windelbouwman commentedMay 11, 2020
edited
Loading

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 intowindows build tips and tricks

@Joetib
Copy link
Author

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.

@mireille-raad
Copy link
Member

I am closing this PR because it seems obsolete.@Joetib I hope you find something new to contribute to RustPython!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@coolreader18coolreader18coolreader18 left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@Joetib@coolreader18@windelbouwman@mireille-raad

[8]ページ先頭

©2009-2025 Movatter.jp