Code Monkey home page Code Monkey logo

Comments (10)

saghul avatar saghul commented on September 23, 2024

Hi there! Glad to hear you are using aiodns and pycares :-) Sure, such a patch would be welcome.

from pycares.

wumpus avatar wumpus commented on September 23, 2024

The patch is easy, but I am not having much luck installing and testing it. (I'm relatively new to python and python packaging.)

I modified the file pycares/_cfficore/init.py to have "class Channel" have the additional args.

I did "python ./setup.py install" and I can see it build c-ares and install some python code, but not including pycares/_cfficore

And when I "python tests/tests.py", it's clear that my code change to cfficore is not installed. Obviously the old one is installed somewhere, because the old tests all work.

from pycares.

wumpus avatar wumpus commented on September 23, 2024

untested code is in pull req #40

from pycares.

saghul avatar saghul commented on September 23, 2024

The PR will be built against different Python versions and operating systems, you can rely on the CI catching any mistakes :-)

from pycares.

wumpus avatar wumpus commented on September 23, 2024

I understand CI. My problem is modifying cfficore/_init_.py doesn't seem to cause anything to happen... including in the CI, which couldn't possibly be screwing up installation. If you look at pull req #40 you can see my change, and that my new tests fail as if I didn't change anything.

from pycares.

saghul avatar saghul commented on September 23, 2024

Right. So currently pycares is implemented kind-of twice. In C in src/ and using CFFI in cfficore. You need to make the change on both.

Currently all Python versions fail because it's not implemented in the C backend, and PyPy fails due to some type incompatibility. You can check the Travis output for all the details.

from pycares.

wumpus avatar wumpus commented on September 23, 2024

Thanks. That's worth a comment in the code :-) because I would never have figured that out from reading the Travis output! (although if I was more experienced with python I probably would have figured it out)

from pycares.

wumpus avatar wumpus commented on September 23, 2024

I am in an argument with ffi about the alignment of "struct in_addr *". As you can see from pull req #42 (which I created solely to get an additional test into CI) this problem was started by your change for issue 36 #36, which fails if there's a test that calls channel.set_local_ip().

I tried adding '...' and it didn't work, so I aligned struct in_addr like Linux does (uint32_t) and that works for both Linux and Windoze. Needless to say I'm a bit uncomfortable with this "solution", as an ffi newbie...

from pycares.

saghul avatar saghul commented on September 23, 2024

Yeah, I'll add a note on the README at least.

from pycares.

wumpus avatar wumpus commented on September 23, 2024

I have 2 pullreqs ready to merge, we've discussed them, they languish. Do you not get notifications for pullreq discussion?

from pycares.

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.