Skip to content

Commit

Permalink
Allow dependencies to be installed inside a .sublime-package
Browse files Browse the repository at this point in the history
My dependency can be packed inside a `.sublime-package`, there no
need to it be on the loose user packages folder. When I need it, I
just import like:
```python
from DependencyName.file_name import CoolClass
``` (reverted from commit f6f6d92)
  • Loading branch information
evandrocoan committed Feb 16, 2018
1 parent 25188d1 commit a2d6cf2
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions package_control/package_manager.py
Expand Up @@ -1187,11 +1187,9 @@ def install_package(self, package_name, is_dependency=False):

dependencies_path = 'dependencies.json'
no_package_file_zip_path = '.no-sublime-package'
on_package_file_zip_path = '.on-sublime-package'
if skip_root_dir:
dependencies_path = root_level_paths[0] + dependencies_path
no_package_file_zip_path = root_level_paths[0] + no_package_file_zip_path
on_package_file_zip_path = root_level_paths[0] + on_package_file_zip_path

# If we should extract unpacked or as a .sublime-package file
unpack = True
Expand All @@ -1214,13 +1212,6 @@ def install_package(self, package_name, is_dependency=False):
if is_dependency:
unpack = True

# If it is a dependency and package maintainer doesn't want a .sublime-package
try:
package_zip.getinfo(on_package_file_zip_path)
unpack = False
except (KeyError):
pass

# If dependencies were not in the channel, try the package
if not is_dependency and not have_installed_dependencies:
try:
Expand Down

0 comments on commit a2d6cf2

Please sign in to comment.