Sublime Forum

How do we add third party python modules to my in-developement plugin

#1

I’d be interested to do some transliteration in a plugin I’m developing and this seems to be a perfect tool for the task. Simce I’m very unexperienced in python, would someone be so kind as to outline the steps I’d have to take to be able to use it in my plugin?

0 Likes

#2

You can create a Package Control dependency https://packagecontrol.io/docs/dependencies and submit it with your plugin on package control.

  1. Open your Packages folder (menu Preferences -> Browse Packages)
  2. Open a command line on the folder Packages
  3. Assure you have git installed, and run the commands:
    1. git clone https://github.com/avian2/unidecode
    2. cd unidecode
    3. mkdir all
    4. git mv unidecode all/unidecode
    5. echo 10 > .sublime-dependency
    6. git add .sublime-dependency
    7. git commit -m "Created a Package Control dependency."
  4. Assure you have Package Control installed
  5. Open the Command Palette and run the command Install Local Dependency
  6. Now on your plugin, just follow the instructions on: https://github.com/avian2/unidecode#module-content
0 Likes