from setuptools import setup, find_packages
import os
import subprocess

os.system("pip install git+https://github.com/ComparativeGenomicsToolkit/sonLib@toil")

versionFile = "src/cactus/shared/version.py"
if os.path.exists(versionFile):
    os.remove(versionFile)
git_commit = subprocess.check_output('git log --pretty=oneline -n 1 -- $(pwd)', shell=True).split()[0]
with open(versionFile, 'w') as versionFH:
    versionFH.write("cactus_commit = '%s'" % git_commit)


setup(
    name="progressiveCactus",
    version="1.0",
    author="Benedict Paten",
    package_dir = {'': 'src'},
    packages=find_packages(where='src'),
    include_package_data=True,
    package_data={'cactus': ['*_config.xml']},
    # We use the __file__ attribute so this package isn't zip_safe.
    zip_safe=False,

    install_requires=[
        'subprocess32',
        'psutil',
        'networkx'],
    
    entry_points={
        'console_scripts': ['progressiveCactus = cactus.progressive.cactus_progressive:main']},)

from setuptools import setup, find_packages
import os
import subprocess

os.system("pip install git+https://github.com/ComparativeGenomicsToolkit/sonLib@toil")

versionFile = "src/cactus/shared/version.py"
if os.path.exists(versionFile):
    os.remove(versionFile)
git_commit = subprocess.check_output('git log --pretty=oneline -n 1 -- $(pwd)', shell=True).split()[0]
with open(versionFile, 'w') as versionFH:
    versionFH.write("cactus_commit = '%s'" % git_commit)


setup(
    name="progressiveCactus",
    version="1.0",
    author="Benedict Paten",
    package_dir = {'': 'src'},
    packages=find_packages(where='src'),
    include_package_data=True,
    package_data={'cactus': ['*_config.xml']},
    # We use the __file__ attribute so this package isn't zip_safe.
    zip_safe=False,

    install_requires=[
        'subprocess32',
        'psutil',
        'networkx'],
    
    entry_points={
        'console_scripts': ['cactus = cactus.progressive.cactus_progressive:main']},)

Change entrypoint name from 'progressiveCactus' to 'cactus'
Change entrypoint name from 'progressiveCactus' to 'cactus'
