import distutils
import distutils.core

from appdirs import user_config_dir

from post_installation import post_installation

def readme():
    """Return the readme file"""
    with open("README.md") as f:
        return f.read()


distutils.core.setup(name="iridaUploader",
    version="1.0.0",
    url="http://irida.corefacility.ca/gitlab/rcamba/iridauploader.git",
    author='Kevin Camba',
    author_email='kevin.camba@phac-aspc.gc.ca',
    packages=["iridaUploader", "iridaUploader.API", "iridaUploader.Exceptions",
              "iridaUploader.GUI", "iridaUploader.Model",
              "iridaUploader.Parsers", "iridaUploader.Validation",
              "iridaUploader.docs", "iridaUploader.docs._static",
              "iridaUploader.docs._static.basic_usage",
              "iridaUploader.docs._static.handling_errors",
			  "iridaUploader.docs._build",
			  "iridaUploader.docs._build.html",
			  "iridaUploader.docs._build.html._images",
			  "iridaUploader.docs._build.html._sources",
			  "iridaUploader.docs._build.html._static"],
    package_dir={
        "iridaUploader/GUI/images": "iridaUploader/GUI/images",
        "iridaUploader/docs/_static": "iridaUploader/docs/_static",
		"iridaUploader/docs/_build": "iridaUploader/docs/_build"
    },
    package_data={
        "iridaUploader.GUI": ["images/*.png", "images/*.ico"],
        "iridaUploader.docs._static.basic_usage": ["*.png", "*.gif"],
        "iridaUploader.docs._static.handling_errors": ["*.png", "*.gif"],
		"iridaUploader.docs._build": ["*"],
		"iridaUploader.docs._build.html": ["*"],
		"iridaUploader.docs._build.html._images": ["*"],
		"iridaUploader.docs._build.html._sources": ["*"],
		"iridaUploader.docs._build.html._static": ["*"]
    },
	scripts=["iridaUploader/run_IRIDA_Uploader.py"]
)


post_installation()

@@ -37,94 +37,8 @@
 re%0A%0A
-from appdirs import user_config_dir%0A%0Afrom post_installation import post_installation%0A%0A
 def 
@@ -368,249 +368,120 @@
 s=%5B%22
-iridaUploader%22, %22iridaUploader.API%22, %22iridaUploader.Exceptions%22,%0A              %22iridaUploader.GUI%22, %22iridaUploader.Model%22,%0A              %22iridaUploader.Parsers%22, %22iridaUploader.Validation%22,%0A              %22iridaUploader.docs%22, %22iridaUploader.
+API%22, %22Exceptions%22,%0A              %22GUI%22, %22Model%22,%0A              %22Parsers%22, %22Validation%22,%0A              %22docs%22, %22
 docs
@@ -502,38 +502,24 @@
            %22
-iridaUploader.
 docs._static
@@ -544,38 +544,24 @@
            %22
-iridaUploader.
 docs._static
@@ -581,38 +581,24 @@
 ors%22,%0A%09%09%09  %22
-iridaUploader.
 docs._build%22
@@ -601,38 +601,24 @@
 ild%22,%0A%09%09%09  %22
-iridaUploader.
 docs._build.
@@ -626,38 +626,24 @@
 tml%22,%0A%09%09%09  %22
-iridaUploader.
 docs._build.
@@ -659,38 +659,24 @@
 ges%22,%0A%09%09%09  %22
-iridaUploader.
 docs._build.
@@ -697,30 +697,16 @@
 ,%0A%09%09%09  %22
-iridaUploader.
 docs._bu
@@ -756,50 +756,22 @@
    %22
-iridaUploader/GUI/images%22: %22iridaUploader/
+GUI/images%22: %22
 GUI/
@@ -788,30 +788,16 @@
        %22
-iridaUploader/
 docs/_st
@@ -800,38 +800,24 @@
 /_static%22: %22
-iridaUploader/
 docs/_static
@@ -822,30 +822,16 @@
 ic%22,%0A%09%09%22
-iridaUploader/
 docs/_bu
@@ -837,30 +837,16 @@
 uild%22: %22
-iridaUploader/
 docs/_bu
@@ -885,30 +885,16 @@
        %22
-iridaUploader.
 GUI%22: %5B%22
@@ -930,38 +930,24 @@
 %5D,%0A        %22
-iridaUploader.
 docs._static
@@ -990,30 +990,16 @@
        %22
-iridaUploader.
 docs._st
@@ -1040,38 +1040,24 @@
 *.gif%22%5D,%0A%09%09%22
-iridaUploader.
 docs._build%22
@@ -1064,38 +1064,24 @@
 : %5B%22*%22%5D,%0A%09%09%22
-iridaUploader.
 docs._build.
@@ -1093,38 +1093,24 @@
 : %5B%22*%22%5D,%0A%09%09%22
-iridaUploader.
 docs._build.
@@ -1130,38 +1130,24 @@
 : %5B%22*%22%5D,%0A%09%09%22
-iridaUploader.
 docs._build.
@@ -1176,22 +1176,8 @@
 %0A%09%09%22
-iridaUploader.
 docs
@@ -1227,22 +1227,8 @@
 s=%5B%22
-iridaUploader/
 run_
@@ -1253,26 +1253,4 @@
 %5D%0A)%0A
-%0A%0Apost_installation()%0A

Remove iridaUploader path from setup.py.