diff --git a/LICENSE b/LICENSE
index e76b29762f914dea666f9a46fece03dc993d630c..c41d8f025814bd818af551d63362b670b274b5f0 100644
--- a/LICENSE
+++ b/LICENSE
@@ -631,7 +631,7 @@ to attach them to the start of each source file to most effectively
 state the exclusion of warranty; and each file should have at least
 the "copyright" line and a pointer to where the full notice is found.
 
-    pip-upgradedependencies
+    pipupgradedependencies
     Copyright (C) 2019  IT4Innovations National Supercomputing Center,
     VSB - Technical University of Ostrava, Czech Republic
 
@@ -653,7 +653,7 @@ Also add information on how to contact you by electronic and paper mail.
   If the program does terminal interaction, make it output a short
 notice like this when it starts in an interactive mode:
 
-    pip-upgradedependencies  Copyright (C) 2019  
+    pipupgradedependencies  Copyright (C) 2019  
     IT4Innovations National Supercomputing Center,
     VSB - Technical University of Ostrava, Czech Republic
     This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
diff --git a/README.md b/README.md
index a20bc7b24abf2ed06c644564b4337926e42dca32..56df80e8ae1ac584a2c55f2661849130a8c03073 100644
--- a/README.md
+++ b/README.md
@@ -1,11 +1,11 @@
-# pip-upgradedependencies
+# pipupgradedependencies
 
-Pip-upgradedependencies upgrades all outdated packages with respect to existing dependencies.
+Pipupgradedependencies upgrades all outdated packages with respect to existing dependencies.
 
 Python 2.7 is required.
 
 ## Usage
 
 ```console
-pip-upgradedependencies
+pipupgradedependencies
 ```
diff --git a/pipupgradedependencies/__init__.py b/pipupgradedependencies/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..de40ea7ca058e07a399acf61529d418c07eeee61
--- /dev/null
+++ b/pipupgradedependencies/__init__.py
@@ -0,0 +1 @@
+__import__('pkg_resources').declare_namespace(__name__)
diff --git a/pip-upgradedependencies.py b/pipupgradedependencies/pipupgradedependencies.py
similarity index 94%
rename from pip-upgradedependencies.py
rename to pipupgradedependencies/pipupgradedependencies.py
index 37af0e0257ea12bd1dc308596aeeaf86e974a032..19c0a5c8ab19e96d79038e53ea27b4464cb4a4c9 100644
--- a/pip-upgradedependencies.py
+++ b/pipupgradedependencies/pipupgradedependencies.py
@@ -18,10 +18,11 @@ def find_dependencies(json_input, package):
             for item_val in find_dependencies(item, package):
                 yield item_val
 def arg_parse():
-  parser = argparse.ArgumentParser(description="Pip-upgradedependencies upgrades all outdated packages with respect to existing dependencies.")
+  parser = argparse.ArgumentParser(description="Pipupgradedependencies upgrades all outdated packages with respect to existing dependencies.")
   parser_args = parser.parse_args()
 
 def main():
+  arg_parse()
   os.environ["PYTHONWARNINGS"] = "ignore:DEPRECATION"
 
   try:
@@ -70,5 +71,4 @@ def main():
   print "Done."
 
 if __name__ == "__main__":
-  arg_parse()
   main()
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000000000000000000000000000000000000..fb27791efdc3fee2622856047b8ae4d46ca45506
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,29 @@
+from setuptools import setup, find_packages
+
+setup(
+    name='pipupgradedependencies',
+
+    version='0.0.1',
+
+    description='Pipupgradedependencies upgrades all outdated packages with respect to existing dependencies.',
+    classifiers=[
+        'Operating System :: POSIX :: Linux',
+        'Programming Language :: Python',
+        'Programming Language :: Python :: 2.7',
+        'Topic :: Software Development :: Libraries :: Python Modules',
+    ],
+
+    author='IT4Innovations',
+    author_email='support@it4i.cz',
+    url='https://code.it4i.cz/sccs/pip-upgradedependencies',
+    license='GPLv3+',
+
+    packages=find_packages(),
+    namespace_packages=['pipupgradedependencies'],
+    zip_safe=False,
+    entry_points={
+        'console_scripts': [
+            'pipupgradedependencies = pipupgradedependencies.pipupgradedependencies:main',
+        ]
+   },
+)