Skip to content

Commit

Permalink
Enable platform-dependent distributions (wheels)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanPaulShapo committed Jun 17, 2016
1 parent 8882863 commit c69e201
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
3 changes: 2 additions & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
# This file is for developer's use

from __future__ import print_function

Expand Down Expand Up @@ -41,7 +42,7 @@
setup(
# some common information
name='bigartm',
version='0.8.1rc4-r2',
version='0.8.1rc4-r3',
packages=find_packages(),
package_data={'artm.wrapper': [artm_library_name]},

Expand Down
12 changes: 11 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,15 @@
working_dir = os.path.abspath(os.getcwd())


# Hook to distribute platform-dependent wheels if necessary
from setuptools.dist import Distribution


class BigARTMDistribution(Distribution):
def is_pure(self):
return false


class build(_build):
def run(self):
# Create build directories and run cmake
Expand Down Expand Up @@ -92,11 +101,12 @@ def run(self):
setup(
# some common information
name='bigartm',
version='0.8.1rc4-r2',
version='0.8.1rc4-r3',
packages=['artm', 'artm.wrapper'],
package_dir={'': './python'},
# add shared library to package
package_data={'artm.wrapper': [artm_library_name]},
distclass=BigARTMDistribution,

# information about dependencies
install_requires=[
Expand Down

0 comments on commit c69e201

Please sign in to comment.