<div dir="ltr"><div>If I good understand install_data is additional command. I try to help my best, but i Im not expert in packaging. Short time ago I spend many hours to package may application. <br></div>In my case I export data to another package. <br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">wt., 16 kwi 2019 o 18:45 Detlev Offenbach <<a href="mailto:detlev@die-offenbachs.de">detlev@die-offenbachs.de</a>> napisał(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Grzegorz,<br>
<br>
the VERSION file was meant to be created by a build script. Meanwhile I <br>
implemented something different. The idea with the 'build_py' is interesting. <br>
There are some other files that need processing and potentially reverting this <br>
change. Is there another command, that is called at the end of the build? <br>
Maybe there is some documentation that explains, which commands are called in <br>
which order. I intend to call it like<br>
<br>
python3 setup.py bdist_wheel<br>
<br>
Another observation I made is, that "pip install eric6.whl" does not execute <br>
the 'install_data' or a 'install' command. Any suggestion for that?<br>
<br>
Detlev<br>
<br>
Am Montag, 15. April 2019, 22:43:24 CEST schrieb Grzegorz Bokota:<br>
> there is no VERSION file in the repository.<br>
> I also suggestto store __version__ varable in __init__.py of eric. The<br>
> allows to check it form imported lib.<br>
> Some code like:<br>
> <br>
> def read(*parts):<br>
> with codecs.open(os.path.join(current_dir, *parts), 'r') as fp:<br>
> return fp.read()<br>
> <br>
> <br>
> def find_version(*file_paths):<br>
> version_file = read(*file_paths)<br>
> version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",<br>
> version_file, re.M)<br>
> if version_match:<br>
> return version_match.group(1)<br>
> raise RuntimeError("Unable to find version string.")<br>
> <br>
> <br>
> You put in one file<br>
> <br>
> python_requires=">=3.5",<br>
> <br>
> and<br>
> <br>
> "Programming Language :: Python :: 2.7",<br>
> <br>
> I add few fixes to setup.py to build ui files during build phase (lines<br>
> 96-118). Now, on my computer, it builds (When add VERSION file) and can be<br>
> installed with pip install ./eric6.<br>
> <br>
> I do not use eric earler so i do not know how to test it.<br>
> I got warnings like Warning: translation file 'qscintilla_pl_PL'could not<br>
> be loaded. on startup.<br>
> <br>
> pon., 15 kwi 2019 o 18:43 Detlev Offenbach <<a href="mailto:detlev@die-offenbachs.de" target="_blank">detlev@die-offenbachs.de</a>><br>
> <br>
> napisał(a):<br>
> > Thanks Barry. Every example is useful.<br>
> > <br>
> > Detlev<br>
> > <br>
> > Am Sonntag, 14. April 2019, 22:52:46 CEST schrieb Barry:<br>
> > > > On 14 Apr 2019, at 18:36, Detlev Offenbach <<a href="mailto:detlev@die-offenbachs.de" target="_blank">detlev@die-offenbachs.de</a>><br>
> > > > wrote:<br>
> > > > <br>
> > > > Hello all,<br>
> > > > <br>
> > > > I would like to support distribution of eric6 via PyPI. This requires<br>
> > <br>
> > it<br>
> > <br>
> > > > to be packaged as a wheel via setuptools and a setup.py file.<br>
> > > > Unfortunately I am not familiar with this task. Nevertheless, I<br>
> > > > reorganized the eric 6 source tree and created a first setup.py file<br>
> > <br>
> > and<br>
> > <br>
> > > > packed everything into the 'setup.py' branch of the eric repository.<br>
> > > > <br>
> > > > Help with the setup.py file would be much appreciated. Please send<br>
> > > > patches/<br>
> > > > suggestions/tips, simply everything that makes this task done to me or<br>
> > > > these mailing lists.<br>
> > > <br>
> > > If your code is pure python it should be easy enough to package.<br>
> > > <br>
> > > Is this example usedul?<br>
> > > <a href="https://github.com/barry-scott/PythonWinAppPackager/blob/master/setup.py" rel="noreferrer" target="_blank">https://github.com/barry-scott/PythonWinAppPackager/blob/master/setup.py</a><br>
> > > <br>
> > > Barry<br>
> > > <br>
> > > > Regards,<br>
> > > > Detlev<br>
> > > > <br>
> > > > PS: Who to checkout the repository is explained on the eric web site<br>
> > > > (https:// <a href="http://eric-ide.python-projects.org" rel="noreferrer" target="_blank">eric-ide.python-projects.org</a>).<br>
> > <br>
> > --<br>
> > Detlev Offenbach<br>
> > <a href="mailto:detlev@die-offenbachs.de" target="_blank">detlev@die-offenbachs.de</a><br>
> > <br>
> > <br>
> > _______________________________________________<br>
> > PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a><br>
> > <a href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" rel="noreferrer" target="_blank">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
<br>
-- <br>
Detlev Offenbach<br>
<a href="mailto:detlev@die-offenbachs.de" target="_blank">detlev@die-offenbachs.de</a><br>
<br>
<br>
</blockquote></div>