Clean up unused code in setup.py (#1670)

Since #1644 we've removed all the C++ code from the terra repository.
That commit updated the setup.py and build process to not assume we're
compiling code to build the simulators. However we missed a lot of
parameters imports and other code in the setup.py which are not needed
or don't apply anymore now that terra is just python code. This commit
cleans that all up so we minimize what we include in the setup.py.
This commit is contained in:
Matthew Treinish 2019-01-12 17:09:04 -05:00 committed by Jay Gambetta
parent 26525b2d43
commit fe5f712c92
1 changed files with 0 additions and 14 deletions

View File

@ -5,14 +5,7 @@
# This source code is licensed under the Apache License, Version 2.0 found in # This source code is licensed under the Apache License, Version 2.0 found in
# the LICENSE.txt file in the root directory of this source tree. # the LICENSE.txt file in the root directory of this source tree.
import os
import platform
from distutils.command.build import build
from multiprocessing import cpu_count
from subprocess import call
from setuptools import setup, find_packages from setuptools import setup, find_packages
from setuptools.dist import Distribution
requirements = [ requirements = [
@ -31,12 +24,6 @@ requirements = [
] ]
# This is for creating wheel specific platforms
class BinaryDistribution(Distribution):
def has_ext_modules(self):
return True
setup( setup(
name="qiskit-terra", name="qiskit-terra",
version="0.8.0", version="0.8.0",
@ -64,7 +51,6 @@ setup(
install_requires=requirements, install_requires=requirements,
include_package_data=True, include_package_data=True,
python_requires=">=3.5", python_requires=">=3.5",
distclass=BinaryDistribution,
extra_requires={ extra_requires={
'visualization': ['matplotlib>=2.1', 'nxpd>=0.2', 'ipywidgets>=7.3.0', 'visualization': ['matplotlib>=2.1', 'nxpd>=0.2', 'ipywidgets>=7.3.0',
'pydot'], 'pydot'],