GithubHelp home page GithubHelp logo

Comments (8)

neomonkeus avatar neomonkeus commented on June 19, 2024

Packaging pyffi as a separate add-on will add another step for the user to do. I suppose it makes sense if the user is capable of installing the Blender nif part of the plug-in they will be capable of installing a Pyffi module first. But I do foresee lots of people looking for help because they do not install in the right order or not installing the Pyffi add-on at all.

Ideally I would have liked an all in one "plug-in" so packaging to the module folder would be my preferred option.

I will get onto campbo about the upgrade system.

( Also double relate imports "..xx.y" was the only way I could figure out to get some of the tests working, I know its not related to the actual end plug-in. You are right it does lead to incomprehensible imports and this is only simple one. Can we rename the sub /test folder to something else as I think that is the root cause. )

from blender_niftools_addon.

neomonkeus avatar neomonkeus commented on June 19, 2024

I was talking to @kilon and @BlenderPhys over on #blenderpython and its seems that the add-on installer works as a simple copy paste solution. I will check it out myself later, but we may have to go back to the old way.

from blender_niftools_addon.

neomonkeus avatar neomonkeus commented on June 19, 2024

There seems to be an overwrite option when you go to install the scripts, should investigate further. There are also some add-ons which allow you to install/upgrade suggested by @Gaia-Clary from #blenderpython, We could make an installer add-on and then use that to install all dependancies, but that might leave us back in the same situation on how to upgrade that, but it would only be single dependancy, delete it locally, reinstall, call imp...upgrade inception. Falling back to bdist_nsi might be still an option.

from blender_niftools_addon.

neomonkeus avatar neomonkeus commented on June 19, 2024

Just thinking that having a niftools add-on manager might be advantageous as then I would have no objections to migrating each of the nif utilities to separate repos?

from blender_niftools_addon.

amorilia avatar amorilia commented on June 19, 2024

I'm not terribly keen on introducing an addon just to handle installation, if we can avoid it.

Looking at the source of the blender install addon feature, indeed it (attempts?) to remove the existing addon folder, but probably it will fail at doing so (at least on 2.62) because os.rmdir is used which will only remove empty folders. Instead, shutil.rmtree ought to be used. Hopefully I missed something and I am wrong, but if I'm right, we probably can get this fixed upstream.

Regarding modules, here's another possible solution: introduce a io_scene_nif/modules folder ourselves, and add it to sys.path when io_scene_nif is imported? Personally, I hate to have to mess with sys.path, but... This will also ensure that old files get erased on upgrade (because the entire io_scene_nif folder gets wiped, or at least that's the idea).

from blender_niftools_addon.

neomonkeus avatar neomonkeus commented on June 19, 2024

That looks good. I will still like to look into the add-on installer as a possibly alternative and for the wider scheme of things, i.e utilities etc. I am currently talking with Gaia-Clary, who has already given me the source code, so will find out more info. Here is general detail about it - http://blog.machinimatrix.org/products/marketplace/addon/overview/

from blender_niftools_addon.

amorilia avatar amorilia commented on June 19, 2024

Well, it's certainly something we can revisit in the future. Anyway, this goes way beyond the "how do we bundle pyffi" question, so this issue can be closed?

from blender_niftools_addon.

neomonkeus avatar neomonkeus commented on June 19, 2024

Yeah I have manually merged the last update that was omitted from the pull request.

from blender_niftools_addon.

Related Issues (20)

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.