forked from lanl/qmasm
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
32 lines (28 loc) · 1 KB
/
setup.py
File metadata and controls
32 lines (28 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#! /usr/bin/env python
###################################
# Install QASM #
# By Scott Pakin <pakin@lanl.gov> #
###################################
import os.path
from setuptools import setup, find_packages
from setuptools.command.install import install as _install
class install(_install):
def run(self):
# Install, then remove qasm.py, keeping only qasm.
_install.run(self)
pyscript = os.path.join(self.install_scripts, "qasm.py")
script = os.path.join(self.install_scripts, "qasm")
os.rename(pyscript, script)
setup(name = "QASM",
version = "1.0",
description = "Quantum Macro Assembler",
author = "Scott Pakin",
author_email = "pakin@lanl.gov",
classifiers = ["Topic :: Software Development :: Compilers"],
url = "https://github.com/losalamos/qasm",
license = "BSD",
keywords = "quantum assembler d-wave",
packages = find_packages(),
scripts = ["qasm.py"],
cmdclass = {"install": install}
)