From de813385743faed9d0c8967b41626098e0d3d763 Mon Sep 17 00:00:00 2001 From: nhertz <nhertz@nrao.edu> Date: Mon, 20 Jul 2020 16:57:42 -0600 Subject: [PATCH] Forgot to add these files. --- src/setup.py | 8 ++++++++ src/setuprecipe.py | 20 ++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/src/setup.py b/src/setup.py index e69de29bb..2b36c859a 100644 --- a/src/setup.py +++ b/src/setup.py @@ -0,0 +1,8 @@ +from setuptools import setup + +setup( + name='setuprecipe', + version='0.1', + py_modules = ['setuprecipe'], + entry_points = {"zc.buildout": ["default=setuprecipe:Recipe"]}, +) \ No newline at end of file diff --git a/src/setuprecipe.py b/src/setuprecipe.py index e69de29bb..f958d9967 100644 --- a/src/setuprecipe.py +++ b/src/setuprecipe.py @@ -0,0 +1,20 @@ +import os + +class Recipe: + def __init__(self, buildout, name, options): + options['created'] = "{}/dist/{}".format(options['path'], name + "-4.0.0a1.dev1.macosx-10.15-x86_64.tar.gz") + self.options = options + + def install(self): + self.options.created(self.options['created']) + # home = os.getcwd() + + # cd into correct directory + os.chdir(self.options['path']) + os.system("ls -la") + # Run setup.py + os.system("python3 setup.py bdist") + + return self.options.created() + + update = install \ No newline at end of file -- GitLab