Matthias Koefferlein
d378a632f3
Bugfix: a standalone LayoutView object made the application crash on exit
...
Reason: at the Qt will destroy all top level widgets.
Ruby/Python will now know of this, hence try to cleanup
the object inside it's GC.
There was an attempt to avoid this by deleting all
top-level widgets before the application exits. But
this failed for LayoutView objects because these will
create other, dependet top-level widgets for the plugins.
And the LayoutView wants to stay owner for them.
2018-07-29 01:02:39 +02:00
Matthias Koefferlein
5fe0aca9c7
Fixed a segfault on help(pya.Box)
...
Needed to refactor the class hierarchy of the Python classes.
Basically the module specific base class was removed as it does
not provide any benefit. The object layout of the PyObject
specialization was modified such that the payload is attached
to the end. This is compatible with the hidden extensions
which Python adds to normal objects.
2018-07-19 23:50:24 +02:00
Matthias Koefferlein
aca209c095
Using C.UTF-8 locale fallback for string tests for vanilla Linux installations.
2018-07-18 21:57:47 +02:00
Matthias Koefferlein
3dd55bdd2a
setup.py updated with correct loading path of Linux (thanks, @atait)
2018-07-18 19:11:36 +00:00
Matthias Koefferlein
64625dcbda
Fixed setup.py for use with Linux
...
The equivalent to @loader_path (Mac) is $ORIGIN on Linux.
I have removed the rpath specification as it was simply wrong
with setuptools.
2018-07-16 23:44:30 +00:00
Matthias Köfferlein
8d87138cc7
Merge pull request #143 from lightwave-lab/pymod
...
Pymod improvements for MacOS
2018-07-17 00:08:16 +02:00
Thomas Ferreira de Lima
11ff91b00b
trying without brew curl and expat (bis)
2018-07-16 10:45:03 -04:00
Thomas Ferreira de Lima
eb9d53e990
trying without brew curl and expat
2018-07-16 10:40:16 -04:00
Thomas Ferreira de Lima
bd046405e3
only importing tl, db and rdb for testing
2018-07-16 09:35:25 -04:00
Thomas Ferreira de Lima
2a2660290b
more travis tests
2018-07-16 02:23:36 -04:00
Thomas Ferreira de Lima
c269f39ba0
setting up travis compilation
2018-07-16 01:53:10 -04:00
Thomas Ferreira de Lima
8330415b29
adding rpath to all libraries
2018-07-16 01:52:51 -04:00
Thomas Ferreira de Lima
e1dcaf469e
converting to 4-spaces, PEP8 format
2018-07-16 01:16:36 -04:00
Thomas Ferreira de Lima
7540da8c32
changing to setuptools and fixing macOS linking
2018-07-16 01:12:11 -04:00
Matthias Koefferlein
1f91f34126
More reliable detection of extension suffix for Python 2.x
2018-07-16 00:56:12 +02:00
Matthias Koefferlein
9dcfa140c3
Added __init__.py file to Python package.
2018-07-15 19:33:44 +00:00
Matthias Koefferlein
8c63069697
Merge branch 'pymod' of www.klayout.org:/home/matthias/klayout into pymod
2018-07-15 21:00:38 +02:00
Matthias Koefferlein
46b0f079cf
Skipping HTTP tests rather than disabling them
...
With this commit, tests are logged as skipped and
not just omitted, if HTTP support is not enabled
(neighter Qt nor curl)
2018-07-15 20:58:54 +02:00
Matthias Koefferlein
106879e344
Fixed setup.py after recent update
2018-07-15 18:05:10 +00:00
Matthias Koefferlein
5351922440
Enabled minimum build configuration
...
Minimum build configuration is without Qt, Ruby, curl and expat.
Only Python is required.
This commit also provides a functional (through polling) Qt-less HTTP
implementation through libcurl if enabled.
2018-07-15 19:59:45 +02:00
klayoutmatthias
6858190a20
Fixed Windows build and tests
...
* tl::is_same_file works with directories now too
* Unit tests added for this
* bridge_mod sample produces the proper DLL now
2018-07-15 18:03:42 +02:00
Matthias Koefferlein
bbb88c5ca6
Merge branch 'pymod' of www.klayout.org:/home/matthias/klayout into pymod
2018-07-15 07:42:14 -07:00
Matthias Koefferlein
d3b4bc7f87
Enabled pymod build via setup.py/distutils on MacOS
2018-07-15 07:42:01 -07:00
klayoutmatthias
1642129504
Fixed a typo that breaks the Win build.
2018-07-15 16:39:16 +02:00
Matthias Koefferlein
cb33753e1c
Fixed a FileUtils unit test on Windows.
2018-07-15 15:36:30 +02:00
Matthias Koefferlein
a1d8913de9
Enhanced Qt-less FileUtils test, so they cover the full functionality without Qt
2018-07-15 15:27:39 +02:00
Matthias Koefferlein
fc9783432b
Bugfix: db_plugin modules were not loaded for python modules
...
* Added unit test for this
* Provided an option for easier debugging such issues:
Setting env var KLAYOUT_VERBOSITY will enable debug levels on Python
modules (and all other binaries). Plugin loading issues can
be debugged by setting KLAYOUT_VERBOSITY=21.
2018-07-15 14:14:14 +02:00
Matthias Koefferlein
c4351185b1
Development of setup.py: added db_plugin building.
2018-07-15 10:52:59 +00:00
Matthias Koefferlein
62016697b0
Further development of setup.py
2018-07-15 10:12:05 +00:00
Matthias Koefferlein
af328a560a
Merge branch 'pymod' of www.klayout.org:/home/matthias/klayout into pymod
2018-07-15 09:13:48 +00:00
Matthias Koefferlein
07f69dccd3
Merge branch 'pymod' of www.klayout.org:/home/matthias/klayout into pymod
2018-07-15 11:12:29 +02:00
Matthias Koefferlein
628219080a
Some enhancements/bug fixes for Windows
...
* Enabled pipe: on outputs
* Don't die on file paths containing backslashes in DRC tests
2018-07-15 11:11:05 +02:00
Matthias Koefferlein
144ca87383
Even more generalization for setup.py
2018-07-14 22:42:18 +00:00
Matthias Koefferlein
dc9d6fb592
A bit more generalization for setup.py
2018-07-14 22:30:12 +00:00
Matthias Koefferlein
6d3490811d
First steps towards a setup.py script.
2018-07-14 22:01:37 +00:00
Matthias Koefferlein
6a3914fcf6
Fixed pya.cc build with Py3/Linux
2018-07-14 20:32:13 +00:00
Matthias Koefferlein
e709cad9c8
Fixed an include path for better compatibility with Python's distutil.
2018-07-14 20:24:28 +00:00
Matthias Koefferlein
49fd896e68
Another fix for Windows build.
2018-07-14 09:31:40 +02:00
Matthias Koefferlein
2f99a8a67d
Another fix for Windows build.
2018-07-14 09:19:23 +02:00
Matthias Koefferlein
817ab9cd1c
Fixed Windows build.
2018-07-14 08:55:46 +02:00
Matthias Koefferlein
5ea72893f3
Enabled build with Qt again.
2018-07-14 02:16:35 +02:00
Matthias Koefferlein
8f04fc5358
Removed some further Qt dependencies. For example, HTTPS access now is possible without Qt through Curl only.
2018-07-14 02:14:06 +02:00
Matthias Koefferlein
9ea24cb6a0
Explicitly set the locale for local string conversion test.
2018-07-13 18:35:49 +02:00
Matthias Koefferlein
937fa96245
Some bug fixes
...
* Case folding table fixed: lowercase "i without dot" overlaps "i"
* Fixed build of bridge sample in non-Qt case
2018-07-13 08:03:00 +02:00
Matthias Koefferlein
abdde4ba19
Corrected last commit (UTF-8 case conversion) and added more test coverage.
2018-07-13 01:13:41 +02:00
Matthias Koefferlein
70a4bd7aa2
Locale-independent implementation of UTF-8 string case conversion.
2018-07-13 01:07:46 +02:00
Matthias Koefferlein
4f326572d4
Fixed one .pro file for older Qt versions
2018-07-12 23:57:00 +02:00
Matthias Koefferlein
72c3288090
Disabled thread local storage test for Qt <4.7 because this class is broken with an int argument on Qt 4.6.2
2018-07-12 23:25:33 +02:00
Matthias Koefferlein
ccc5be86d7
Fixed a typo - strange enough it compiled with this error on some platforms.
2018-07-12 23:24:46 +02:00
Matthias Koefferlein
1375bdcc9a
Fixed XMLParser unit test 5 for Qt
2018-07-12 23:19:54 +02:00