Coder Social home page Coder Social logo

Comments (6)

stuaxo avatar stuaxo commented on June 11, 2024

Needs to be installable, need to find out what the story with WHLs is (maybe we just disable this) + remove as much custom code as possible from the installer.

The gedit install from setup.py could put plugin_shoebot into the correct directory for gedit, then add the .plugin file to the root.

Maybe dist_dir target directory can be set and then everything except the .plugin file work through ordinary setuptools

from plugin-shoebot.

rlafuente avatar rlafuente commented on June 11, 2024

It's an old-ish repo, but how about this example for setup.py?

from plugin-shoebot.

stuaxo avatar stuaxo commented on June 11, 2024

Interesting.. I might well use data-files, I need to see what happens on current setuptools, there's been a lot of churn in the last few years.

I'm going to include the logic we already have to find the correct gedit plugin directory, but cleaned up (hopefully most of it will be removed).

The structure will be something like

${gedit-plugin-dir}/plugin_shoebot
${gedit-plugin-dir}/shoebot.plugin
${language-dir}/shoebot.lang

I was getting a bit stuck as setuptools seems to be moving towards everything being a WHL, while plugin-shoebot can be one, the step to install it in the right place, and install the .plugin and .lang can't be... probably I shouldn't worry too much about that.

from plugin-shoebot.

stuaxo avatar stuaxo commented on June 11, 2024

This is a pretty nice example of "does a bunch of stuff" setup.py

https://pypi.org/project/pypy_fix_cython_warning/#files

from plugin-shoebot.

stuaxo avatar stuaxo commented on June 11, 2024

Installation is currently possible with this command from the root of the repo -

$ python -c 'from plugin_shoebot.install import libpeas'

Obviously setup.py will do the same things in the end.

But just gets you the same old plugin, with a couple of things broken.

One really surprising thing about breaking this code up, is quite how much there is inside our extensions.

Needs a bit more iteration before installing is fixed, and then can start extracting things so that a plugin API starts emerging.

from plugin-shoebot.

stuaxo avatar stuaxo commented on June 11, 2024

Currently, pip install plugin_shoebot installs the gedit plugin (except on OSX, where I don't know the plugin location).

This will probably change to something like:

Install API:

pip install plugin_shoebot

Install gedit plugin

pip install plugin_shoebot --plugins=gedit

I'll probably make a command plugin_shoebot that can install the plugins without using pip, something like:

plugin_shoebot install gedit

from plugin-shoebot.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.