Coder Social home page Coder Social logo

Comments (7)

vasole avatar vasole commented on July 17, 2024

Hi Fred,

Now that PyQt wheels are available it makes sense to make PyMca pip installable. It is targeted for next release (5.1.2)

Armando

from pymca.

picca avatar picca commented on July 17, 2024

Great armando, then I will use pypi as source for the package :)).

It think that I will be available for packaging during this summer :)
fisx and pymca.
It would be great to remove fisx from the pymca source and use the pip installation of fisx.
Until then I do some work around pyFAI with my trainee.

Cheers

Fred

from pymca.

vasole avatar vasole commented on July 17, 2024

The fisx sources distributed with PyMca are ignored by setup.py unless explicitly asked to be considered. They should not interfere with your default packaging.

They are there mainly for my convenience when generating ESRF debian packages because I can easily make fisx and PyMca share the same data (sub)package.

from pymca.

picca avatar picca commented on July 17, 2024

You speak about all the data files used by fisx and pymca.

It would be great if pymca and fisx could share the same data whcih could come from another pacakge or decide which pacakge is the only one official source of the data fisx (from my point of viiew)

This way pymca should only depends on fisx in order to access the data and I could split fisx into

python-fisx
python3-fisx
python-fisx-common (for all the data installed under /usr/share/fisx/...)

that mean that at simple DATAPATH should be available in fisx in order to explain where are the data
so pymca could

DATAPATH = fisx.DATAPATH or something like this.

guidata and guiqwt use this sort of think.

I just need to maintain a one line patch in order to install all the data at the right place

Cheers

Fred

from pymca.

vasole avatar vasole commented on July 17, 2024

I am not against that proposal. Since fisx has no dependencies it should be easy to build. However, I think it will be a bit more complex to implement than it looks at first instance.

PyMca uses additional data so, probably either

  • I "contaminate" fisx with data that have nothing to do with it (ugly)
  • Install PyMca data on the fisx data directory but I do not know how uninstall will behave
  • Instruct PyMca to look for data in a list of directories instead of using just one directory

The later is probably the most error prone but probably better.

from pymca.

picca avatar picca commented on July 17, 2024
  • I "contaminate" fisx with data that have nothing to do with it (ugly)

In thaht case the data should be split between
fisx data (/usr/share/fisx/...)
pymca data (/usr/share/pymca/...)

  • Install PyMca data on the fisx data directory but I do not know how uninstall will behave

This is not an issue for the pacakging but you are right this is ugly except if fisx propose and enhance data solution via a dedicated data path.
I mezan if fisx can use extra data provided by third party if they are installed in a dedicated directory.

  • Instruct PyMca to look for data in a list of directories instead of using just one directory

Pymca should finde the fisx data via fisx and it's own data by itself.

But I do not know exactly what your use from one sice and the other.

So maybe We should discuss more specifically on the rela data files and decide which one goes where :)

Cheers

from pymca.

vasole avatar vasole commented on July 17, 2024
  • PyMca 5.1.2 available from PyPI.
  • No duplication of data if fisx > 1.0.8 installed. If not, just one file is duplicated.
  • fisx is now a mandatory dependency of PyMca.

from pymca.

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.