-
Notifications
You must be signed in to change notification settings - Fork 13
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
Simplify installation of pych with Brew or Pip #75
Comments
I've had success with To be honest, I don't know what the Though again, I didn't push a release after the latest batch of changes, so the build might be busted for a version of Chapel after the one listed. |
Ah, crud, I think you're right that it isn't a full install . . . |
I'm all about the crud. You'll grow to hate me. I took from the docs your need |
Actually, here is an example: http://pychapel.readthedocs.io/introduction.html#hello-world Fails for me. |
:( My kingdom for a pyChapel BTR person . . . |
A glimpse into my ignorance: What is BTR? |
Build-Test-Release |
Also, don't hesitate to open issues! It's always exciting to see someone play with pyChapel :) |
|
And for what it's worth, my two platforms of choice are OS X and Ubuntu. Homebrew is for OS X |
Whilst I recently switched to Homebrew on my macOS El Capitan laptop, I used to be a staunch supporter of MacPorts. All too often people provide for one and not the other. As for Linux I am Debian Sid and Fedora Rawhide, it's always good to see packages appear for them. If in Debian, it gets into Ubuntu automatically, albeit up to six months later. |
@lydia-duncan build-test-release should be automated. Or am I misunderstanding the issue? |
@russel - it definitely should, but transitioning to that point is not automated, and that's the part that is hurting us most. |
|
I am unfamiliar with pych, but I will try turning http://pychapel.readthedocs.io/introduction.html#installation into a Homebrew formula, and report progress here today or tomorrow. Meanwhile, any suggestions welcome! |
I wish you the best of Slack, Reverend Bob... |
Will prepare a script + written instruction to manually build Pychapel on Linux from source, with Chapel from current dev source (master branch). After that, will try for same on OS X. Cheers. |
Hit problems with Pip/Python dependencies. Here is a preliminary result. |
Based on yesterdays result, here is a slightly-nicer package of Pychapel build scripts for Ubuntu. This is a shell archive ("shar") file. Like a tar file, except you expand it by running it as a sh script in an empty directory. Lets you move multiple files easily using just copy-paste. This shar contains the following All these scripts have been lightly tested on AWS Ubuntu server 16.04 VMs. Note: the Pychapel full install script still includes a source patch for these Ubuntu VMs. I cannot just commit that patch to pychapel "master" because it appears to break the build on the Linux machines we use internally. I will not be able to work on Pychapel again until next week. Hope this helps! |
Thanks @awallace-cray ! I haven't been able to try this yet. Do you have a sense of next steps and/or timing for this ticket? |
I intended to start on Mac OS X version later today. If successful, that would lead to a Homebrew formula change, meaning your brew install chapel would bring pych with it. It can take several days just to change the official homebrew formula. However you could benefit sooner (again, if I am successful) by using a less-automatic interim procedure. We still want some combination of pip install pychapel plus (something) to be easier to use and less Python environment-dependent than it seems to be now. That seems like a longer-term effort, at least to me. |
@buddha314 - Pychapel on Mac OS X will not be easily fixed. Will go back to work on improving Ubuntu, perhaps pip install + (easy instructions) or (scripts). Please work with the interim Ubuntu procedure (above) and let me know how it goes - that would be helpful. Thanks. |
Thanks Mr. Dobbs, I'll give that a shot in the next 24 hours and get back to you. |
Okay, immediate error. I downloaded this file
Can't find uudecode, is that via pip or apt? |
All right, found it with
Now I'll run the extracted scripts. |
I ran the scripts and they completed with minimal failures. However, the |
Did you source venv.sh from your interactive shell? |
Before or after I run the setup scripts? Not sure of the sequence. |
ah, after, but I thought I tried that. I ran all of them to let the SubGenius sort them out, was that the right strategy? Now I'll need some sample code to try this against. |
Setup scripts build stuff that stays on disk, mostly under ~/.virtualenvs/pychapel. source venv.sh merely activates that stuff (prepends things in your PATH and similar). After source venv.sh, pych is in your PATH |
There is a hello world in http://pychapel.readthedocs.io/introduction.html#hello-world |
Users are annoying, I'll say it for you.
|
|
That last error is probably due to your Chapel compile. Either it wasn't compiled with the quickstart and CHPL_LIBMODE=shared settings, or you don't currently have those settings in your path. Tony, is that on his end or on your script's end? |
The pychpl-shar scripts compiled Chapel with quickstart and =shared settings. Please add the following at the bottom of venv.sh:
Thanks! |
@buddha314 : confirmed: Apologies: pych unit tests work without adding the Chapel env clause. I must not have tested python hw.py in the same env. |
Hmmm... sounds like somebody owes me a shiny new penny.... I'll try to day, thanks! |
Updated gists: Rudimentary Pychapel build scripts for Ubuntu 16.04, updated 2017-08-02 09:42,
|
For posterity, I followed these steps in an empty directory. I ran all the shell scripts except 5.
Created `hello.py'
Then back to
For giggles, I ran it twice. As I expected, the first time it took a moment to compile but the second time it ran immediately. Next it to try this with external Chapel source code, but I'm worried about this ticket: #77 I'm not sure if the current ticket should be closed until the installation process is self-contained. What does the SubGenius think? |
No, this process is not yet worthy of religious icons like ourselves. |
Absolutely not, no. |
This docker image might be of some interest. This is a developmental prototype docker image which includes Chapel + Pychapel, built with the same preliminary build scripts discussed above. The idea is to keep your Pychapel project files on some workstation that can run docker image. Then you run pych or python from inside the docker image, using a shared directory to access your Pychapel project files. You could keep the Chapel and Pychapel source trees, and even the Python virtual env, outside the docker- another shared directory. A new user would have to provision this docker image before using, by running the build scripts from inside the docker. That docker image would be much much smaller. |
Is there a reason to prefer a docker image over a homebrew installation? |
No. This Docker was a concept experiment. I'm working on a Homebrew prototype. |
Updated gists: Rudimentary Pychapel build scripts for Ubuntu 16.04, updated 2017-08-10 10:35,
|
The temporary patch I was using, was merged onto master on 2017-08-11. |
That means the ubuntu install works better, right? How is OS X coming? |
Not as well. Spent about 2 days. Recorded here: #46 |
Created a set of rudimentary build scripts for Pychapel on Mac OS X.
Next: see if this can be made into a usable Homebrew formula. Meanwhile, it would be great if others could give this a try and reply here w feedback. |
https://gist.github.com/awallace-cray/31da7c2f2333e56cb7949f94d5fcea5f no longer works with current Chapel master (2018-01-23).
Updated gist: Rudimentary Pychapel build scripts for Mac OS X 10.11 updated 2018-01-23 17:38
Note: This only worked after I uninstalled homebrew and re-installed it according to the instructions in |
Updated gists: Rudimentary Pychapel build scripts for Ubuntu 16.04, updated 2018-01-24 10:36
|
The installation procedure for
pych
is detailed here: http://pychapel.readthedocs.io/introduction.html#installation It requires tracking down libraries, making links, etc. These tasks could be greatly simplified byhomebrew
orpip
.Either way, you cannot do
pip install pyChapel
then run `pych --check'.The text was updated successfully, but these errors were encountered: