开发者

Bundling an scons based source

开发者 https://www.devze.com 2022-12-14 22:11 出处:网络
We are using SCons for all our build need, and we would like to distribute a library in open source. Now most softwares uses ./configure, make and make install as build mechanism, we were wondering h

We are using SCons for all our build need, and we would like to distribute a library in open source.

Now most softwares uses ./configure, make and make install as build mechanism, we were wondering how we should bundle our library.

We have the following 开发者_如何学编程solutions:

  • Just bundle like the way it is, requiring scons to build.
  • Add a dummy configure and makefile that just call scons.
  • Add autoconf and a makefile.

How it is perceived to get a software requiring python and scons to build?


I think it depends largely on your target audience (ie, users who can easily install scons if they don't have it, or ones who can't), but if you are distributing source at all then presumably your users are happy compiling things, and they can install scons too (and python if for some obscene reason they don't have it already)

Also, if you are worried about people not being able to build it, you should probably be distributing a binary package anyway.


If your library is cross-platform and can be compiled on Windows too, then using scons is the right choice.


Another option would be to include the scons-local version in the package. This reduces the dependencies to just python.

0

精彩评论

暂无评论...
验证码 换一张
取 消