Skip to content

Commit

Permalink
Fix the setup file
Browse files Browse the repository at this point in the history
  • Loading branch information
nabla-c0d3 committed Aug 27, 2018
1 parent 017d88d commit db93917
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ install:
- pipenv install --dev
script:
- invoke test
- python setup.py sdist
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,22 @@

from setuptools import find_packages
from sslyze import __author__, __email__, __version__, PROJECT_URL
from cx_Freeze import Executable

# Setup file based on https://github.com/pypa/sampleproject/blob/master/setup.py
root_path = path.abspath(path.dirname(__file__))

# For cx_freeze builds, we need a special setup() function
if len(sys.argv) > 1 and sys.argv[1] == 'build_exe':
from cx_Freeze import setup
from cx_Freeze import Executable
else:
from setuptools import setup

# Create fake Executable that does nothing so the setup.py file can be used on Linux
class Executable:
def __init__(self, script, targetName):
pass


def get_long_description():
"""Convert the README file into the long description.
Expand Down

0 comments on commit db93917

Please sign in to comment.