-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
A script to help new devs #4427
Comments
Works on OS X. |
We have a script to install all the dependencies you need here: https://github.com/bokeh/bokeh/blob/master/scripts/dev_environment We should advertise that better... I guess... |
@damianavila totally! |
@damian - I can't get that script to run - any suggestions. First, it requires conda-build, which isn't obvious. If I run Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "/Users/caged/miniconda3/lib/python3.4/site-packages/conda_build/metadata.py", line 333, in __init__
assert isdir(path)
AssertionError
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "/Users/caged/miniconda3/lib/python3.4/site-packages/conda_build/metadata.py", line 333, in __init__
assert isdir(path)
AssertionError
Error: too few arguments, must supply command line package specs or --file
BUILD dependecies installed.
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "/Users/caged/miniconda3/lib/python3.4/site-packages/conda_build/metadata.py", line 333, in __init__
assert isdir(path)
AssertionError
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "/Users/caged/miniconda3/lib/python3.4/site-packages/conda_build/metadata.py", line 333, in __init__
assert isdir(path)
AssertionError
Error: too few arguments, must supply command line package specs or --file
RUN dependecies installed.
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "/Users/caged/miniconda3/lib/python3.4/site-packages/conda_build/metadata.py", line 333, in __init__
assert isdir(path)
AssertionError
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "/Users/caged/miniconda3/lib/python3.4/site-packages/conda_build/metadata.py", line 333, in __init__
assert isdir(path)
AssertionError
Error: too few arguments, must supply command line package specs or --file
TEST (and examples) dependecies installed. If I run usage: conda [-h] [-V] [--debug] command ...
conda: error: unrecognized arguments: python distribute setuptools nodejs>=4.1 six python-dateutil numpy yaml pyyaml jinja2 tornado>=4.3
BUILD dependecies installed.
usage: conda [-h] [-V] [--debug] command ...
conda: error: unrecognized arguments: python six requests pyyaml python-dateutil jinja2 numpy tornado>=4.3 futures-compat
RUN dependecies installed.
usage: conda [-h] [-V] [--debug] command ...
conda: error: unrecognized arguments: graphviz pygments sphinx>=1.3.1 colorama coverage flake8 mock pandas pytest>=2.9.0 pytest-cov==1.8.1 pytest-selenium>=1.2.1 pytest-xdist pytest-rerunfailures beautiful-soup scipy pillow boto pdiff jupyter matplotlib sympy ggplot seaborn icalendar flask flexx
TEST (and examples) dependecies installed. |
Also, does this let you pick a version of python? I'm not sure it would. My conda root is py3.4., but I wanted to set-up a py 3.5 environment. |
@damianavila :( I couldn't get it to work either. Clearly I'm missing something too. I've been using py 3.5. |
@birdsarah Eric's script didn't work flawlessly for me. Though even with debugging it was less than 5 minutes. 😵 |
Yep, it uses conda build to be able to always be in sync with the packages outlined in the conda recipe... so, theoretically, the script will be always updated from the packages point of view... BUT, I have to test it with the latest conda-build 😉, because it could be outdated in that specific point.
If you create a py35 env, and use the script pointing to that env, it should install the py35 packages as expected... |
Thanks @damianavila |
@damianavila - also worth noting this bug I reported here: conda/conda#2602 I also wrote-up a guide here: https://bokeh-cookbook.github.io/blog/2016/06/05/setting-up-your-dev-environment/ |
There is also the doc page, generated from the source code then built using sphinx. There are some inconsistencies in directions contained in that file, e.g., multiple ways to do the same thing (including multiple shortcuts) and mis-ordered bits. |
I've made a substantial pass at the dev docs "getting started" as well as simplified some install steps greatly with a |
At the recent PyCon 2016, there was a bunch of us who wanted to work on documentation, but had issues getting setup.
In response to these frustrations, I created a script (pasted below) that I think may help others. Tested only on Mac OS X, likely will work on Ubuntu Linux. Windows - sorry folks 😦, I don't have access to a Windows Box.
Name this script
dev-start.sh
, place it in thebokeh/scripts
directory, and execute the script.The text was updated successfully, but these errors were encountered: