1
0
forked from M-Labs/artiq
artiq/setup.py
Robert Jordens 6cc3a9d973 frontend/*: move to artiq.frontend, make entry_points
* solves the trouble of having to setup PATH and PYTHONPATH in a project
  specific way and keep them changing
* works well with virtualenvs
* works under windows where the shebang is meaningless
* works if your python is not named "python3"

* can use "pip3 install --user --editable ."
  * creates an egg-link in ~/.local/share/... pointing to $PWD
  * generates the scripts and copies them to ~/.local/bin which is likely
    already in your $PATH
  * analogously under windows

* or call scripts as "python3 -m artiq.frontend.master"
2015-01-17 16:02:43 +08:00

43 lines
1.3 KiB
Python
Executable File

#!/usr/bin/env python3
from setuptools import setup, find_packages
from glob import glob
import os
setup(
name="artiq",
version="0.0+dev",
author="M-Labs / NIST Ion Storage Group",
author_email="sb@m-labs.hk",
url="http://m-labs.hk/artiq",
description="A control system for trapped-ion experiments",
long_description=open("README.rst").read(),
license="BSD",
install_requires=[
"sphinx", "pyserial", "numpy", "scipy", "prettytable"
],
extras_require={},
dependency_links=[],
packages=find_packages(),
namespace_packages=[],
test_suite="artiq.test",
data_files=[
(os.path.join("artiq", "gui"),
[os.path.join("artiq", "gui", "icon.png")])],
ext_modules=[],
entry_points={
"console_scripts": [
"artiq_client=artiq.frontend.client:main",
"artiq_ctlid=artiq.frontend.ctlid:main",
"artiq_gui=artiq.frontend.gui:main",
"artiq_master=artiq.frontend.master:main",
"artiq_run=artiq.frontend.run:main",
"lda_client=artiq.frontend.lda_client:main",
"lda_controller=artiq.frontend.lda_controller:main",
"pdq2_client=artiq.frontend.pdq2_client:main",
"pdq2_controller=artiq.frontend.pdq2_controller:main",
],
}
)