FindAFactor 3.8.1__tar.gz → 3.8.2__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: FindAFactor
3
- Version: 3.8.1
3
+ Version: 3.8.2
4
4
  Summary: Find any nontrivial factor of a number
5
5
  Home-page: https://github.com/vm6502q/FindAFactor
6
6
  Author: Dan Strano
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: FindAFactor
3
- Version: 3.8.1
3
+ Version: 3.8.2
4
4
  Summary: Find any nontrivial factor of a number
5
5
  Home-page: https://github.com/vm6502q/FindAFactor
6
6
  Author: Dan Strano
@@ -12,7 +12,7 @@ cmake.args = ["-DCMAKE_BUILD_TYPE=Release"]
12
12
 
13
13
  [project]
14
14
  name = "FindAFactor"
15
- version = "3.8.1"
15
+ version = "3.8.2"
16
16
  requires-python = ">=3.8"
17
17
  description = "Find any nontrivial factor of a number"
18
18
  readme = {file = "README.txt", content-type = "text/markdown"}
@@ -1,6 +1,5 @@
1
1
  from setuptools import setup, Extension
2
2
  from setuptools.command.build_ext import build_ext
3
- import sys
4
3
  import os
5
4
 
6
5
  class CMakeExtension(Extension):
@@ -27,6 +26,10 @@ class CMakeBuild(build_ext):
27
26
  cmake_args = ['-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=' + extdir]
28
27
  self.spawn(['cmake', ext.sourcedir] + cmake_args)
29
28
  self.spawn(['cmake', '--build', '.', '--config', 'Release'])
29
+ if os.name == 'nt':
30
+ os.chdir(extdir)
31
+ os.rename('Release/_find_a_factor.cp312-win_amd64.pyd', '_find_a_factor.cp312-win_amd64.pyd')
32
+ os.rmdir('Release')
30
33
  os.chdir(wd)
31
34
 
32
35
  README_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.md')
@@ -37,7 +40,7 @@ ext_modules = [CMakeExtension('_find_a_factor')]
37
40
 
38
41
  setup(
39
42
  name='FindAFactor',
40
- version='3.8.1',
43
+ version='3.8.2',
41
44
  author='Dan Strano',
42
45
  author_email='stranoj@gmail.com',
43
46
  description='Find any nontrivial factor of a number',
File without changes
File without changes
File without changes