Skip to content

Commit

Permalink
Remove mysqlclient from dependencies, fix shebang bug
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-kotliar committed Sep 13, 2019
1 parent dc2eec9 commit 32d1c7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cwl_airflow/app/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ def __configure(self):
self.__web_conf = self.__read_plist(os.path.join(default_conf_folder, os.path.basename(self.__AIRFLOW_WEB)))
self.__api_conf = self.__read_plist(os.path.join(default_conf_folder, os.path.basename(self.__AIRFLOW_API)))
self.__update_variables()
self.__update_shebang()
self.__update_shebang(os.path.join(self.__contents_dir, "Resources/app_packages/bin"))
self.__update_shebang(os.path.join(self.__contents_dir, "Resources/app/bin"))
self.__init_airflow_db()
self.__update_airflow_config()
self.__copy_dags()
Expand Down Expand Up @@ -123,8 +124,7 @@ def __update_variables(self):
self.__api_conf["StandardOutPath"] = log_api + ".stdout"


def __update_shebang(self):
lookup_dir = os.path.join(self.__contents_dir, "Resources/app_packages/bin")
def __update_shebang(self, lookup_dir):
shebang = "#!{}".format(os.path.join(self.__contents_dir, "Resources/python/bin/python3"))
for filename in os.listdir(lookup_dir):
filename = os.path.join(lookup_dir, filename)
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ def get_version():
'jsonmerge',
'ruamel.yaml == 0.15.97',
'apache-airflow == 1.10.5',
'mysqlclient >= 1.3.6, < 1.4',
'pyjwt',
'urllib3',
'connexion'
Expand Down

0 comments on commit 32d1c7f

Please sign in to comment.