Skip to content

Commit

Permalink
Fixed setup requirements: (╯ರ ~ ರ)╯︵ ┻━┻
Browse files Browse the repository at this point in the history
  • Loading branch information
cdo-defcon committed Mar 27, 2018
1 parent 5aee2f0 commit d5cfeb0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions atomshields/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ def setup():




@staticmethod
def installPlugin(origin, destination):
if os.path.isfile(origin) and os.path.isdir(destination):
Expand Down
15 changes: 13 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,20 @@
from setuptools import find_packages
from distutils.core import setup

from distutils.core import setup
from distutils.command.install import install as _install


def read_file(filename):
with open(filename) as f:
return f.read()

# (╯ರ ~ ರ)╯︵ ┻━┻
# For compatibility: Install dependencies directly via pip
import pip
pip.main(["install"] + read_file('requirements.txt').splitlines())


package_name = 'atomshields'

setup(
Expand Down Expand Up @@ -56,8 +66,9 @@ def read_file(filename):
)


# Setup files

# Setup AtomShields
from atomshields.scanner import AtomShieldsScanner

AtomShieldsScanner.setup()


0 comments on commit d5cfeb0

Please sign in to comment.