THỨ TƯ,NGÀY 22 THÁNG 4, 2020

If you would like be able to duplicate they to another host, explore –stand alone and you can backup this new authored program

Bởi Nguyễn Hoàng Phong

Cập nhật: 26/09/2022, 05:11

If you would like be able to duplicate they to another host, explore –stand alone and you can backup this new authored program

Raise factors for individuals who encounter anything in these

The choice –follow-imports or other variants be as effective as, nevertheless the included modules will simply be importable when you brought in new some_module title.

The ensuing expansion module can only just getting loaded https://datingmentor.org/womens-choice-dating/ on the a great CPython of the identical adaptation and you can will not tend to be other expansion modules.

The fresh new inclusion of your bundle content has to be considering manually, if you don’t, the box are empty. You will be so much more certain if you like, and simply are section of they. Documents located inside the package may not be embedded by the this course of action, you should duplicate him or her oneself using this type of strategy.

For shipments some other possibilities, you’ve got the stand alone form and this provides good folder where you could potentially establish –standalone .

Go after all the imports was default inside mode. You could potentially precisely exclude modules by specifically saying –nofollow-import-in order to , however an enthusiastic ImportError would-be elevated whenever transfer from it was tried from the system runtime.

Having records to be integrated, make use of the solution –include-data-files= = where the supply is actually a document program street, but target should be given relative. To have standalone it’s also possible to backup them by hand, but this may carry out more monitors, and also for onefile mode, there is absolutely no guide duplicating you can easily.

To reproduce certain otherwise every file inside the a directory, utilize the solution –include-data-files=/etc/*.txt=etc/ for which you arrive at establish cover designs for the files, and you can an effective subdirectory where you can put them, conveyed of the about cut.

To replicate a complete folder with all of data, you should use –include-data-dir=/path/to/images=pictures that will content every files as well as a possible subdirectory structure. You simply cannot filter right here, i.age. if you like just a partial backup, get rid of the data files ahead of time.

If you would like collect a complete plan and you will embed every modules, that is plus feasible, fool around with Nuitka such as this:

To own bundle data, discover an easier way, using –include-package-investigation and therefore finds files regarding packages immediately and duplicates her or him more. It also accepts patterns for the shell style.

That have files, you are largely your self. Nuitka tracks ones that are needed by popular bundles, but it was incomplete.

This can carry out just one digital, and that to the Linux cannot even unpack in itself, but rather loop back attach the content since the an excellent filesystem and you may have fun with you to definitely.

There are other program specific choice, age.g. associated with symbols, splash screen, and you may variation recommendations, look at the –assist returns on details of these types of and check the newest area “Apperance”.

Once more, to your Windows, to your short term document index, automatically the consumer you’re put, but not this can be overridden that have a route specification offered in –windows-onefile-tempdir-spec=%TEMP%\\onefile_%PID%_%TIME% the standard and you can asserts that temporary listing written cannot collide.

It’s your decision to really make the path given novel, on Windows a flowing program could be closed, even though using a fixed folder name’s you are able to, it may cause locking activities therefore, where program will get restarted.

Usually you can utilize %TIME% or perhaps %PID% and then make a road book, referring to primarily designed for use instances, in which e.grams. you want what things to reside in a place you choose otherwise abide their naming exhibitions.

When you yourself have an excellent , options.cfg or pyproject.toml determined creation of wheels for the software in position, getting Nuitka to make use of is extremely simple.

Allows begin by the most famous setuptools method, you could potentially – which have Nuitka strung of course, simply perform the target bdist_nuitka instead of the bdist_wheel . It needs all the choice and you may allows you to specify some a great deal more, which can be certain so you can Nuitka.

Bình luận

Tôn trọng lẫn nhau, hãy giữ cuộc tranh luận một cách văn minh và không đi vượt quá chủ đề chính. Thoải mái được chỉ trích ý kiến nhưng không được chỉ trích cá nhân. Chúng tôi sẽ xóa bình luận nếu nó vi phạm Nguyên tắc cộng đồng của chúng tôi

Chưa có bình luận. Sao bạn không là người đầu tiên bình luận nhỉ?

SEARCH