Skip to content

Commit

Permalink
Remove plugins.txt install
Browse files Browse the repository at this point in the history
  • Loading branch information
GILIYAR RADHAKRISHNA Chaithya committed Jan 19, 2024
1 parent f48245d commit 79db1a9
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,40 +103,6 @@ def check_plugins(plugin_list):
return only_pinned


def pipinstall(package_list):
"""Pip install PyPi packages."""

if not isinstance(package_list, list):
raise TypeError('Pre-install inputs must be of type list.')

for package in package_list:
subprocess.check_call(
[sys.executable, '-m', 'pip', 'install', package]
)


def install_plugins():
"""Install Plug-Ins."""

plugin_list = pysap_plugins
if only_plugins:
plugin_list = check_plugins(only_plugins)
elif no_plugins:
plugin_list = []

pipinstall(plugin_list)

print('\nPySAP plug-ins installed: {0}\n'.format(plugin_list))


class CustomInstall(install):
"""Custom Install Class."""

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
atexit.register(install_plugins)


class CMakeExtension(Extension):
"""Use absolute path in setuptools extension."""
def __init__(self, name, sourcedir=''):
Expand Down Expand Up @@ -254,7 +220,6 @@ def run(self):

# Set default values for ext_modules and cmdclass
ext_modules = None
cmdclass = {'install': CustomInstall}

# Add Sparse2D build commands
if build_sparse2d:
Expand Down

0 comments on commit 79db1a9

Please sign in to comment.