Skip to content

Commit

Permalink
Merge branch 'master' into new-py2llvm
Browse files Browse the repository at this point in the history
whitequark committed Nov 20, 2015
2 parents 00ec574 + 51f04f6 commit 28fa687
Showing 20 changed files with 33 additions and 35 deletions.
2 changes: 1 addition & 1 deletion artiq/frontend/artiq_client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python3.5

import argparse
import logging
2 changes: 1 addition & 1 deletion artiq/frontend/artiq_compile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python3.5

import sys, logging, argparse

2 changes: 1 addition & 1 deletion artiq/frontend/artiq_coretool.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python3.5

import argparse

2 changes: 1 addition & 1 deletion artiq/frontend/artiq_ctlmgr.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python3.5

import asyncio
import atexit
4 changes: 2 additions & 2 deletions artiq/frontend/artiq_flash.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3.5
# conda-build requires all scripts to have a python shebang.
# see https://github.com/conda/conda-build/blob/6921f067a/conda_build/noarch_python.py#L36-L38

@@ -13,7 +13,7 @@ def run(script):
run("""
set -e
ARTIQ_PREFIX=$(python3 -c "import artiq; print(artiq.__path__[0])")
ARTIQ_PREFIX=$(python3.5 -c "import artiq; print(artiq.__path__[0])")
# Default is kc705
BOARD=kc705
2 changes: 1 addition & 1 deletion artiq/frontend/artiq_gui.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python3.5

import argparse
import asyncio
2 changes: 1 addition & 1 deletion artiq/frontend/artiq_influxdb.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python3.5

import argparse
import logging
2 changes: 1 addition & 1 deletion artiq/frontend/artiq_master.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python3.5

import asyncio
import argparse
2 changes: 1 addition & 1 deletion artiq/frontend/artiq_mkfs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python3.5

import argparse
import struct
2 changes: 1 addition & 1 deletion artiq/frontend/artiq_rpctool.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python3.5

import argparse
import textwrap
2 changes: 1 addition & 1 deletion artiq/frontend/artiq_run.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python3.5
# Copyright (C) 2014, 2015 M-Labs Limited
# Copyright (C) 2014, 2015 Robert Jordens <jordens@gmail.com>

2 changes: 1 addition & 1 deletion artiq/frontend/lda_controller.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python3.5

import argparse

2 changes: 1 addition & 1 deletion artiq/frontend/novatech409b_controller.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python3.5

# Written by Joe Britton, 2015

2 changes: 1 addition & 1 deletion artiq/frontend/pdq2_controller.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python3.5

import argparse
import sys
2 changes: 1 addition & 1 deletion artiq/frontend/pxi6733_controller.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python3.5
# Yann Sionneau <ys@m-labs.hk>, 2015

import argparse
2 changes: 1 addition & 1 deletion artiq/frontend/thorlabs_tcube_controller.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python3.5

import argparse
import sys
2 changes: 1 addition & 1 deletion artiq/gateware/targets/kc705.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python3.5

import argparse
import os
2 changes: 1 addition & 1 deletion artiq/gateware/targets/pipistrello.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python3.5

# Copyright (C) 2014, 2015 Robert Jordens <jordens@gmail.com>
# Copyright (C) 2014, 2015 M-Labs Limited
2 changes: 1 addition & 1 deletion artiq/runtime/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include ../include/generated/variables.mak
include $(MISOC_DIRECTORY)/software/common.mak

PYTHON ?= python3
PYTHON ?= python3.5

OBJECTS := isr.o clock.o rtiocrg.o flash_storage.o mailbox.o \
session.o log.o moninj.o net_server.o bridge_ctl.o \
28 changes: 13 additions & 15 deletions doc/manual/installing.rst
Original file line number Diff line number Diff line change
@@ -174,7 +174,7 @@ These steps are required to generate bitstream (``.bit``) files, build the MiSoC
$ cd ~/artiq-dev
$ git clone https://github.com/m-labs/migen
$ cd migen
$ python3 setup.py develop --user
$ python3.5 setup.py develop --user

.. note::
The options ``develop`` and ``--user`` are for setup.py to install Migen in ``~/.local/lib/python3.5``.
@@ -225,14 +225,14 @@ These steps are required to generate bitstream (``.bit``) files, build the MiSoC
$ cd ~/artiq-dev
$ git clone --recursive https://github.com/m-labs/misoc
$ cd misoc
$ python3 setup.py develop --user
$ python3.5 setup.py develop --user

* Download and install ARTIQ: ::

$ cd ~/artiq-dev
$ git clone --recursive https://github.com/m-labs/artiq
$ cd artiq
$ python3 setup.py develop --user
$ python3.5 setup.py develop --user

.. note::
If you have any trouble during ARTIQ setup about ``pygit2`` installation,
@@ -250,11 +250,11 @@ These steps are required to generate bitstream (``.bit``) files, build the MiSoC

* For Pipistrello::

$ python3 -m artiq.gateware.targets.pipistrello
$ python3.5 -m artiq.gateware.targets.pipistrello

* For KC705::

$ python3 -m artiq.gateware.targets.kc705 -H qc1 # or qc2
$ python3.5 -m artiq.gateware.targets.kc705 -H qc1 # or qc2

* Then, gather the binaries and flash them: ::

@@ -291,30 +291,30 @@ Installing the host-side software
$ git clone https://github.com/m-labs/llvmlite
$ git checkout artiq
$ cd llvmlite
$ LLVM_CONFIG=/usr/local/llvm-or1k/bin/llvm-config python3 setup.py install --user
$ LLVM_CONFIG=/usr/local/llvm-or1k/bin/llvm-config python3.5 setup.py install --user

* Install ARTIQ: ::

$ cd ~/artiq-dev
$ git clone --recursive https://github.com/m-labs/artiq # if not already done
$ cd artiq
$ python3 setup.py develop --user
$ python3.5 setup.py develop --user

.. note::
If you have any trouble during ARTIQ setup about ``pygit2`` installation,
you can install it by using ``pip``:

On Ubuntu 14.04::

$ pip install --user pygit2==0.19.1
$ python3.5 `which pip3` install --user pygit2==0.19.1

On Ubuntu 14.10::

$ pip install --user pygit2==0.20.3
$ python3.5 `which pip3` install --user pygit2==0.20.3

On Ubuntu 15.04 and 15.10::

$ pip install --user pygit2==0.22.1
$ python3.5 `which pip3` install --user pygit2==0.22.1

The rationale behind this is that pygit2 and libgit2 must have the same
major.minor version numbers.
@@ -408,14 +408,12 @@ The core device may use either an external clock signal or its internal clock. T
$ artiq_coretool cfg-write -s startup_clock i # internal clock (default)
$ artiq_coretool cfg-write -s startup_clock e # external clock

Ubuntu 14.04 specific instructions
----------------------------------
Ubuntu 15.10+/Debian jessie+ specific instructions
--------------------------------------------------

This command installs all the required packages: ::

$ sudo apt-get install build-essential autotools-dev file git patch perl xutils-dev python3-pip texinfo flex bison libmpc-dev python3-serial python3-dateutil python3-prettytable python3-setuptools python3-numpy python3-scipy python3-sphinx python3-h5py python3-dev python-dev subversion cmake libusb-dev libftdi-dev pkg-config libffi-dev libgit2-dev

Note that ARTIQ requires Python 3.5.0 or above.
$ sudo apt-get install build-essential autotools-dev file git patch perl xutils-dev texinfo flex bison libmpc-dev subversion cmake libusb-dev libftdi-dev pkg-config libffi-dev libgit2-dev python3.5 python3.5-dev

To set user permissions on the JTAG and serial ports of the Pipistrello, create a ``/etc/udev/rules.d/30-usb-papilio.rules`` file containing the following: ::

0 comments on commit 28fa687

Please sign in to comment.