Hi Thomas,


I changed the code in setup.py as below and used cxfreeze-quickstart script
to build sample python file which works. Now the critical task is for our
project in Ubuntu, we got to give entire directory as source to quickstart
script. I went through the following link however did not understand where
do we specify the build options and procedure of doing so. Could you please
help? Is this to be put in setup.py?



http://stackoverflow.com/questions/15079268/how-can-i-include-a-folder-with-cx-freeze



buildOptions = dict(include_files =
[(absolute_path_to_your_file,'final_filename')]) #single file, absolute
path.



buildOptions = dict(include_files = ['your_folder/']) #folder,relative
path. Use tuple like in the single file to set a absolute path.



setup(

         name = "appname",

         version = "1.0",

         description = "description",

         author = "your name",

         options = dict(build_exe = buildOptions),

         executables = executables)





Regards,



*Sucheta Belvi** | **Convergence Practices*

sucheta.be...@gslab.com | Extn – 9186 | Cell: +91-9822197608



*[image: gslab_logo]*

*www.gslab.com <http://www.gslab.com/>*



*From:* Sucheta Belvi [mailto:sucheta.be...@gslab.com]
*Sent:* 18 November 2015 17:03
*To:* 'primary discussion list for use and development of cx_Freeze' <
cx-freeze-users@lists.sourceforge.net>
*Subject:* RE: [cx-freeze-users] Python 2.7 - Error while CX-Freeze on
Ubuntu 12.04.4 LTS



Hi Thomas,



A bit unclear about in which line the if true conditions needs to be added
in Cx-Freeze/setup.py. The link opens entire setup.py script. The http link
says default#cl-79 so I go to line 79 which is highlighted below.



*if* *not* vars*.*get("Py_ENABLE_SHARED", 0):

                libraryDirs*.*append(vars["LIBPL"])

                libraries*.*append("python%s.%s" *%* sys*.*version_info[:2])

                *if* vars["LINKFORSHARED"] *and* sys*.*platform *!=*
"darwin":

                    extraArgs*.*extend(vars["LINKFORSHARED"]*.*split())

                *if* vars["LIBS"]:

                    extraArgs*.*extend(vars["LIBS"]*.*split())

                *if* vars["LIBM"]:

                    extraArgs*.*append(vars["LIBM"])

                *if* vars["BASEMODLIBS"]:

                    extraArgs*.*extend(vars["BASEMODLIBS"]*.*split())

                *if* vars["LOCALMODLIBS"]:

                    extraArgs*.*extend(vars["LOCALMODLIBS"]*.*split())

            extraArgs*.*append("-s")



*elif*



Regards,



*Sucheta Belvi** | **Convergence Practices*

sucheta.be...@gslab.com | Extn – 9186 | Cell: +91-9822197608



*[image: gslab_logo]*

*www.gslab.com <http://www.gslab.com/>*



*From:* Thomas Kluyver [mailto:tak...@gmail.com <tak...@gmail.com>]
*Sent:* 14 November 2015 23:01
*To:* primary discussion list for use and development of cx_Freeze <
cx-freeze-users@lists.sourceforge.net>
*Subject:* Re: [cx-freeze-users] Python 2.7 - Error while CX-Freeze on
Ubuntu 12.04.4 LTS



Hi Sucheta,

It looks like you're trying to run cx_Freeze from its own source directory,
and its missing the base executables, which need to be compiled from their
source code (in source/bases/). You can try to compile it with "pip install
.", but on Ubuntu you'll probably need to work around this issue:

https://bitbucket.org/anthony_tuininga/cx_freeze/issues/32/cant-compile-cx_freeze-in-ubuntu-1304#comment-None

Once you've done that, create your setup script somewhere other than the
cx_Freeze source directory, so that it imports the installed copy, rather
than the source copy.

Thomas



On 13 November 2015 at 06:26, Sucheta Belvi <sucheta.be...@gslab.com> wrote:

Dear CX Freeze Team,



I am new to Python world and currently using ./cxfreeze-quickstart script
to build a binary out of hello.py program which prints “Hello World”.  I
gave following options – Used Service by giving S, used console but getting
below error. Could someone please support in resolving this issue. I have
checked the problem on google and there are multiple links answering the
question; and am lost in which solution to use exactly.







Regards,



*Sucheta Belvi** | **Convergence Practices*

sucheta.be...@gslab.com | Extn – 9186 | Cell: +91-9822197608



*[image: gslab_logo]*

*www.gslab.com <http://www.gslab.com/>*




------------------------------------------------------------------------------

_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
------------------------------------------------------------------------------
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to