Navigation Menu

Skip to content

Commit

Permalink
Better fix for #931, stays backwards compatible to older setuptools v…
Browse files Browse the repository at this point in the history
…ersions

python-setuptools on OctoPi is quite old and trying to update in a local virtualenv apparently CAN cause problems (we had this with python-serial too a while back), so a backwards compatible solution is better here.
  • Loading branch information
foosel committed Jun 10, 2015
1 parent 6a7a858 commit 8353c9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion setup.py
Expand Up @@ -13,7 +13,6 @@

# Requirements for our application
INSTALL_REQUIRES = [
"setuptools==7.0",
"flask>=0.9,<0.11",
"werkzeug==0.8.3",
"tornado==4.0.1",
Expand Down
3 changes: 2 additions & 1 deletion src/octoprint_setuptools/__init__.py
Expand Up @@ -491,7 +491,8 @@ def create_plugin_setup_parameters(identifier="todo", name="TODO", version="0.1"
cmdclass.update(get_babel_commandclasses(pot_file=pot_file, output_dir=translation_dir, bundled_dir=bundled_dir, pack_name_prefix="{name}-i18n-".format(**locals()), pack_path_prefix="_plugins/{identifier}/".format(**locals())))

from setuptools import find_packages
packages = find_packages(where=source_folder, exclude=ignored_packages, include=[package, "{package}.*".format(**locals())] + additional_packages)
packages = list(set([package] + filter(lambda x: x.startswith("{package}.".format(package=package)), find_packages(where=source_folder, exclude=ignored_packages)) + additional_packages))
print("Found packages: {packages!r}".format(**locals()))

return dict(
name=name,
Expand Down

0 comments on commit 8353c9b

Please sign in to comment.