Code Monkey home page Code Monkey logo

Comments (10)

fabianp avatar fabianp commented on July 21, 2024

Yes the pxd should be installed. I do install them eg for prox_fast.pxd
(see lightning/impl/setup.py). Can you submit a pull request fixing this?
On Jul 5, 2016 5:04 PM, "Vlad Niculae" [email protected] wrote:

I'm working on a package that uses lightning cython code as a dependency
via:

from lightning.impl.dataset_fast cimport ColumnDataset.

When installing lightning via conda or pip, generating the cython file
fails, but if I distribute the generated cpp files the code runs fine.

Should the .pxd files be distributed with lightning to allow this use case?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#90, or mute
the thread
https://github.com/notifications/unsubscribe/AAQ8h-Wr4-6NpFbUsHRYJUyHao1VseEjks5qSnJkgaJpZM4JFNrU
.

from lightning.

vene avatar vene commented on July 21, 2024

Well, apparently 'dataset_fast.pxd' is listed in the setup.py. Still, no .pxd files are included in the package that gets installed either via pip install sklearn-contrib-lightning nor via conda, from what I can tell.

Weird, because it's done the exact same way in scipy.linalg, but those pxd files get installed. But scipy also does this one level higher.

scikit-learn doesn't include any pxds at all in the binary distributions, but they are included in the source distribution via MANIFEST.in.

from lightning.

fabianp avatar fabianp commented on July 21, 2024

OK then I suppose we should include them also in the MANIFEST.in, right?. Can you submit a PR for this? thanks!

from lightning.

vene avatar vene commented on July 21, 2024

That might be it, but I don't know whether MANIFEST.in only affects the sdist. Is there a way to test the generated distribution, as it would get released on pypi, so I know that my fix works? I guess I would have to reproduce the steps for a release?

from lightning.

vene avatar vene commented on July 21, 2024

(is it enough to run python setup.py sdist and examine the result?)

from lightning.

fabianp avatar fabianp commented on July 21, 2024

the one that gets uploaded to pypi is the one generated by sdist. So if it works for that i think we are safe.

from lightning.

fabianp avatar fabianp commented on July 21, 2024

(or at least safer:-)
i can also backport that fix to stable and make a release to double-check

from lightning.

fabianp avatar fabianp commented on July 21, 2024

note that you can also pip-install a source file (giving it a local path)

from lightning.

kmike avatar kmike commented on July 21, 2024

Is it fixed by #91?

from lightning.

vene avatar vene commented on July 21, 2024

everything works fine for me with the current releases

from lightning.

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.