File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change
1
+ import io
1
2
import multiprocessing
2
3
import os
3
4
import subprocess
11
12
from setuptools .command .build_ext import build_ext as build_ext_orig
12
13
13
14
if sys .version_info >= (3 , 4 ):
14
- from pathlib import Path
15
15
from urllib .request import urlcleanup , urljoin , urlretrieve
16
16
else :
17
17
from urllib import urlcleanup , urlretrieve
@@ -397,6 +397,8 @@ def prepare_static_build_linux(self):
397
397
398
398
399
399
if sys .version_info >= (3 , 4 ):
400
+ from pathlib import Path
401
+
400
402
src_root = Path (__file__ ).parent / 'src'
401
403
sources = [str (p .absolute ()) for p in src_root .rglob ('*.c' )]
402
404
else :
@@ -415,10 +417,15 @@ def prepare_static_build_linux(self):
415
417
setup_reqs .append ('pathlib2' )
416
418
417
419
420
+ with io .open ('README.rst' , encoding = 'utf-8' ) as f :
421
+ long_desc = f .read ()
422
+
423
+
418
424
setup (
419
425
name = 'xmlsec' ,
420
426
use_scm_version = True ,
421
427
description = 'Python bindings for the XML Security Library' ,
428
+ long_description = long_desc ,
422
429
ext_modules = [pyxmlsec ],
423
430
cmdclass = {'build_ext' : build_ext },
424
431
setup_requires = setup_reqs ,
You can’t perform that action at this time.
0 commit comments