Ian Philips
8de627e105
added check for libpython_version#m.dylib present in some virtual environments ( #687 )
2017-07-06 13:02:47 -04:00
Davis King
e8e064e534
Added --compiler-flags to setup.py so you can pass options directly to gcc.
2017-05-30 17:18:04 -04:00
Davis King
5f5684a8fb
Made python library and header detection more robust
2017-01-16 06:54:20 -05:00
Davis King
de13fdeb5a
Made setup.py always set PYTHON_INCLUDE_DIR and PYTHON_LIBRARY based on
...
distutils environment variables for all versions of python, not just conda.
2016-12-27 09:21:38 -05:00
hiiwave
c22bedc1c6
Modify setup.py so that it can be installed under conda environment ( #377 )
2016-12-27 08:18:49 -05:00
Davis King
79425443fe
Fixed wrong README filename due to recent change.
2016-10-09 08:39:06 -04:00
Vladimir Sinitsin
5582530bb3
Fix building on win32 with 32bit architecture ( #261 )
...
Now PYTHON_INCLUDE_DIR and PYTHON_LIBRARY setting up correctly for both 32/64 bit architectures
2016-09-29 21:56:13 -04:00
Davis King
fed1e8e292
Added more comments about making python package
2016-09-29 21:32:49 -04:00
AbdealiJK
8da4053c30
setup.py: Don't fail if pip fails in cmake err msg
...
When cmake is not found, the error message suggests what to do to
install cmake. But if `distro` is not found and cannot be installed,
the distro specific error message cannot be shown. Hence, we simply
ignore this and continue on.
Also, make the pip install quiet so that if there is an error message
in that, the user does not get confused by it.
2016-06-11 08:57:20 +05:30
AbdealiJK
faff10f853
setup.py: Provide instructions to install cmake
...
If cmake_path is not found, either cmake is not installed
or cmake is not in the PATH. Hence, we also give instructions
on how to install cmake if the path is not found.
2016-06-09 11:37:53 +05:30
jimreesman
0b3cc3c4a1
add import of get_config_var
2016-02-11 11:32:47 -05:00
jimreesman
6411b5f65d
detect OS X, and query sysconfig for libdir
2016-02-11 10:17:13 -05:00
Pau Gargallo
05e2471555
Decode message only if encoding is known
...
When python does not know the encoding of stdout, sys.stdout.encoding
is None. Then calling decode(None) raises an exception. We just
skip decoding when the encoding is unknown.
2016-01-20 12:06:17 +01:00
Yu Kobayashi
d35104ed3c
sys.stdout.encoding instead of latin-1 in setup.py
...
Please use sys.stdout.encoding instead of latin-1 in setup.py.
This is necessary for non English OS.
2016-01-14 11:07:18 +09:00
Davis King
eca57b467c
Fixed README path
2015-10-27 18:29:05 -04:00
Davis King
5d377ceb6d
Added a overview comment at the top of the file.
2015-10-27 08:22:33 -04:00
Davis King
99a91ce680
The last commit didn't really fix the bug. This one seems to do a better job :)
2015-09-28 22:40:02 -04:00
Davis King
b51b2857f3
Fixed a bug in setup.py that caused it to not print all cmake's outputs to the
...
screen. In particular, that caused cmake's error messsages to be truncated if
the build failed.
2015-09-28 22:14:32 -04:00
Davis King
e16b0f8d21
Minor tweaks to make PyPi happy.
2015-09-27 11:59:58 -04:00
Davis King
ed64455109
Fixed error in setup.py
2015-09-26 22:48:31 -04:00
Davis King
f02f06355b
Removed the old version keeping files in the docs folder now that the
...
dlib/CMakeLists.txt file is keeping the version numbers. Also changed all
relevant scripts to grab the version information from CMakeLists.txt.
2015-09-26 22:24:51 -04:00
Ehsan Azarnasab
5c06db0e35
add python 3 as supported in the classifiers
2015-08-27 19:07:28 -07:00
Ehsan Azarnasab
2fee9b3915
use newest visual studio as generator if multiple installed
2015-08-27 08:22:09 -07:00
Ehsan Azarnasab
61ec7aa862
if no cmake generator is set use same logic as cmake to find default buid generator but use Win64 if the build is for 64bit Python
2015-08-26 20:03:49 -07:00
Ehsan Azarnasab
cdce208ef1
cannot automatically select Win64 toolchain on Windows by setting simple flags
2015-08-26 17:15:40 -07:00
Ehsan Azarnasab
6e2ed37f76
find 64bit Python libraries on 64bit Windows when cmake is 32bit
2015-08-26 14:53:13 -07:00
Ehsan Azarnasab
1c6ba8a1b1
fix argument parsing, also there is no trim, should have used strip.
2015-08-24 09:11:55 -07:00
Ehsan Azarnasab
e469105178
use Python's architecture to give cmake a clue to generate the right config
2015-08-23 10:53:13 -07:00
Ehsan Azarnasab
8e2ec4cc6a
option to pass build system generator to cmake
2015-08-23 10:02:20 -07:00
Ehsan Azarnasab
2f7958e4f9
decode process output as latin-1 for Python3 to also work
2015-08-22 12:59:42 -07:00
Ehsan Azarnasab
fd75d43efb
simplify logic
2015-08-21 13:56:34 -07:00
Ehsan Azarnasab
d1bafb5ae0
simplify passing cmake yes and no options.
2015-08-21 13:54:49 -07:00
Ehsan Azarnasab
34e73a6b6d
make sure only relevant platform artifacts are packaged.
...
avoid foreign artifacts potentially left over from VM builts.
2015-08-21 11:31:16 -07:00
Ehsan Azarnasab
acf61103b6
set sid only on posix
2015-08-20 20:01:54 -07:00
Ehsan Azarnasab
08fb925b34
always clean up dist folder to have a clean sdist and clean builds
2015-08-20 18:03:18 -07:00
Ehsan Azarnasab
2272be1f29
fix argument parsing for cmake option
2015-08-20 14:52:42 -07:00
Ehsan Azarnasab
eccfd6e57b
fix argument parsing for cmake option
2015-08-20 14:51:21 -07:00
Ehsan Azarnasab
78203d3607
fix copy-pasted template
2015-08-20 14:42:13 -07:00
Ehsan Azarnasab
25f0ab83cb
only check cmake existence if building in required
2015-08-20 14:33:45 -07:00
Ehsan Azarnasab
93818fd7e4
only change option key and not its value, which could be case sensitive.
...
make sure --cmake can be used to pass any cmake not in the path.
2015-08-20 14:28:06 -07:00
Ehsan Azarnasab
9e4fe65c47
add __version__ and import extension to the package
2015-08-20 12:21:27 -07:00
Ehsan Azarnasab
26b9de7006
add classifiers to setup.py
2015-08-20 10:51:07 -07:00
Ehsan Azarnasab
69ff6a3fff
make sure sdist includes all necessary packages and no build directories
2015-08-20 10:29:13 -07:00
Ehsan Azarnasab
ae5c624272
move setup.py 2 levels up to avoid the need to git submodules to link to source
2015-08-20 09:42:44 -07:00