Skip to content

Commit

Permalink
relax constraint on when to install menu-items.
Browse files Browse the repository at this point in the history
  • Loading branch information
faph committed Oct 8, 2015
1 parent b9996fa commit 7cf4f67
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions conda/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,16 @@ def create_meta(prefix, dist, info_dir, extra_info):


def mk_menus(prefix, files, remove=False):
if abspath(prefix) != abspath(sys.prefix):
# we currently only want to create menu items for packages
# in default environment
"""
Create cross-platform menu items (e.g. Windows Start Menu)
Passes all menu config files %PREFIX%/Menu/*.json to ``menuinst.install``.
``remove=True`` will remove the menu items.
"""
exclude_envs = ('_build', '_test') # Exclude all envs starting with...
if basename(abspath(prefix)).lower().startswith(exclude_envs):
return

menu_files = [f for f in files
if f.startswith('Menu/') and f.endswith('.json')]
if not menu_files:
Expand Down

0 comments on commit 7cf4f67

Please sign in to comment.