cycurl icon indicating copy to clipboard operation
cycurl copied to clipboard

Compiling Curl Statically instead of Dynamically

Open Vizonex opened this issue 10 months ago • 2 comments

Is your feature request related to a problem? Please describe. A problem that I've had is that some areas of the code are broken and it's a little hard for me to describe but when you want to go lower leveled it either doesn't import or it breaks.

Describe the solution you'd like I was thinking about making it so that we could compile curl statically to make the program run a bit faster and hopefully fix some problems with allowing modules such as AsyncCurl or Curl. I seem to have gained some skills in understanding how setuptools works and I was able to successfully do this before with RandomX where it doesn't need CMake or any other extensions to compile the code and I see the code being improved if we compiled all the modules statically.

Describe alternatives you've considered If however the code becomes too big for the setup.py end, I am willing to maintain a separate project under a name like curl_setuptools which only has the goal of compiling curl on Windows, Linux and Apple and helping users setup and install lower level curl libraries into their projects.

I would also be willing to make this pull request myself if this becomes too difficult for you to configure.

Vizonex avatar Feb 27 '25 16:02 Vizonex

Another Benefit I see from this approach is not needing a .dll which would improve the speed of the code tremendously.

Vizonex avatar Feb 27 '25 16:02 Vizonex

Actually this package is linked against this libcurl, not a usual libcurl, and compile that for windows is not easy, I just modified the original setup script to make it work for cython build.

synodriver avatar Mar 01 '25 08:03 synodriver