diff --git a/setuptools_conda/setuptools_conda.py b/setuptools_conda/setuptools_conda.py index fa80ce5..597dff7 100644 --- a/setuptools_conda/setuptools_conda.py +++ b/setuptools_conda/setuptools_conda.py @@ -275,6 +275,7 @@ def finalize_options(self): def run(self): # Clean shutil.rmtree(self.BUILD_DIR, ignore_errors=True) + shutil.rmtree('build', ignore_errors=True) os.makedirs(self.RECIPE_DIR) # Run bdist_wheel to make a wheel in the recipe dir: @@ -297,7 +298,7 @@ def run(self): 'package': {'name': self.NAME, 'version': self.VERSION,}, 'source': {'url': f'../{wheel}', 'sha256': sha256}, 'build': { - 'script': "{{ PYTHON }} -m pip install %s -vv" % wheel, + 'script': "{{ PYTHON }} -m pip install %s --no-deps -vv" % wheel, 'number': self.build_number, }, 'requirements': { @@ -316,6 +317,10 @@ def run(self): package_details['build']['noarch'] = 'python' if self.build_string is not None: package_details['build']['string'] = self.build_string + console_scripts = self.distribution.entry_points.get('console_scripts', []) + gui_scripts = self.distribution.entry_points.get('gui_scripts', []) + if console_scripts or gui_scripts: + package_details['build']['entry_points'] = console_scripts + gui_scripts if self.license_file is not None: shutil.copy(self.license_file, self.BUILD_DIR) package_details['about']['license_file'] = f'../{self.license_file}'